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