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.

view plain print about
1<cfhttp url="[URL]/test.cfm" charset="UTF-8">
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.

view plain print about
1<cfprocessingdirective pageencoding="utf-8" />
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.