UTF-8 and style sheet problems

Source: Internet
Author: User

I wonder if you have encountered this problem: After the language encoding in Web. config is set to UTF-8, the style usage is abnormal, especially when the Chinese font is applied to the style.
I have never found a good solution to this problem. I generally set the language encoding in Web. config to gb2312. However, when lion's webhtmleditor is used, "?" appears in the content area where spaces exist. That is to say, webhtmleditor can only be used in UTF-8 encoding. (Disable the htmltagstoxhtml attribute, Which is htmltagstoxhtml = false, and webhtmleditor1.0 can be applied to the language code set to gb2312.). After I tried n methods, I suddenly remembered that sometimes some page files in some open-source projects outside China may be garbled. The solution is to open the notepad in the page file, save it as UTF-8 encoding format, for example:

"This is the same as the Style File". OK. The principle is not clear yet, and the effect is achieved. I wonder if you have encountered similar problems. How can we solve them?

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.