Yesterday, I got problem about rendering Unicode font for my first Android project. At that time, I need to fetch unicode data from the other Coldfusion server. By that time, I need to retrieve data and display such unicode data at laptop. In my laptop, I've installed Adobe Coldfusion 9 developer edition. At that time, I've wrote the following coding to display unicode data.
2<cfoutput>#cfhttp.filecontent#</cfoutput>
When I rendered this file, the outcome is as follow.

The problem is CF cannot render unicode font and cannot display either. I don't know why I've even put charset="UTF-8" at cfhttp. That's why I went my blog and put the same cfm file into my blog which hosted Railo. When I rendered again this file, the outcome is as follow.

In this screen, Railo can render unicode font and display it properly. At that time, I've posted this problem at post @ Twitter. At that time, @coldfusionPaul remind me about cfprocessingdirective tag and how to use unicode font with it. Thanks, @coldfusionPaul. At that time, I've changed my coding as follow.
2<!--- cfcontent is also important for unicode --->
3<cfcontent type="text/html charset=utf-8">
4<cfhttp url="[URL]/test.cfm" charset="UTF-8">
5<cfoutput>#cfhttp.filecontent#</cfoutput>
After rending this file, the content displayed properly. Another thing I've found that if I don't put cfcontent, it won't display properly as well.

Android
Top of Page
#1 by Adam Cameron on 8/15/11 - 2:42 PM
I say this only because the example you give is just ASCII text, so it should not be necessary to have the CFPROCESSINGDIRECTIVE tag in this case.
I guess perhaps in your original situation you had UTF-8 text within your actual CFM file too?
--
Adam
#2 by ppshein on 8/15/11 - 8:18 PM
#3 by Adam Cameron on 8/16/11 - 3:16 AM
It needs to be in test.cfm, because that's what's got the non-ASCII text in it.
So you're slightly misrepresenting how CFPROCESSINGDIRECTIVE is used/necessary in these situations.
--
Adam
#4 by ppshein on 8/16/11 - 3:42 AM