You need to ensure your content is served up as UTF-8. On your pages stick this in the page header:
Also in your .cfm files that handle foreign characters, you might also require this (depending on how you're doing it, e.g. you don't specify if the content is written directly into the HTML source, if you're hardcoding it in ColdFusion variables, or getting it from the DB).
<cfprocessingdirective pageencoding="utf-8" />
And you should make sure that the files are saved as UTF-8, not ASCII
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Thanks for the message and help,
I have above code on top of my cfm file.
Do I need cfprocesssingdirective for every single cfquery and cfstrocporc to show special characters?
How can I save a UTF-8? I used save as my cfm file, it has unicode normalization option, but there is no save as UTF-8 or unicode option for cfm save as?
Thanks again for the information and helping,
I use Dreamweaver CS 6.
I use MS SQL Server as backend and I use nvarchar for my string data type which should support unicode.
do you mean any text in the HTML code I need cfprogressingdirective to support UTF-8?
Do I need any special function or format to support unicode?
Thanks again for helping,
This link might be helpful for explaining how to set file encoding in Dreamweaver:
If you had some CFML like:
<cfset name = "双喜">
You'd want that file to have the cfprocessingdirective at the top of the file. If that file was itself perhaps cfincluded from another file, both files would need the cfprocessingdirective.