Recently in doing a ColdFusion project, the development of the program all normal, but when deployed to the server, and then run the original program, the page will appear in Chinese garbled? Even more strangely, the fixed text written on the page is garbled, and the query from the database is normal.
Method One: In order to Project no trouble, temporarily use a very stupid method to solve, namely in the page <body> use code to forcibly change the encoding into Chinese:
<cfprocessingdirective pageencoding= "GB2312" >
Method Two: But this is definitely not the best way to solve the problem, so continue to investigate, after investigation, found that there is a solution, namely:
Save the CFM,CFC file as the utf-8 format.
Method Three: In the Dreamweaver menu modify-----> Page Properties----> Title Code-----> Coding mode is set to your own way and to include the Unicode signature (Bom) (s) Radio box on the hook. To create a new page in the encoding format for the project required format.
The way of a strong turn must work. If you have other ways to change the code, please leave a message so that I can learn one more way.