ColdFusion Chinese system, the running page unexpectedly appears garbled

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.