ASP. NET supports both Simplified and Traditional Chinese

Source: Internet
Author: User
Recently, I was processing a website with two versions: Simplified Chinese and Traditional Chinese. I wanted to handle the traditional version separately (a little different from the simplified version), my machine and. NET is a simplified Chinese version, the page file is converted to big5 (save must be Unicode), whether it is set Charset page, or set responseEncoding = "big5 ", or set Response. contentEncoding, Response. charset. Garbled characters are displayed. (I still don't know how to handle it. If any prawn knows, please kindly advise. Thank you !)

Finally, there is no way. I checked some information on the Internet and finally adopted a stupid method: to convert the simplified Chinese web page to traditional Chinese and then output it. The following is a specific implementation method, from the information found on the Internet:

Set Response. Filter in Page_Load on the page:
Response. ContentEncoding = Encoding. GetEncoding (936); // 936
Related Article

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.