. Net in Hong Kong Space or foreign space garbled solution, outside Hong Kong

Source: Internet
Author: User

. Net in Hong Kong Space or foreign space garbled solution, outside Hong Kong

Garbled characters appear in Hong Kong Space or overseas space websites, but they do not appear in domestic space because the operating language of domestic servers is simplified Chinese, however, the foreign operating system language is not simplified Chinese, so there will be garbled Characters During cookies and garbled characters during information storage.
These problems are generally handled in two ways.
The first is to use Server. UrlEncode () encoding when writing a parameter to the variable parameter, and then use Server. UrlDecode () to decode the method when reading the parameter (this time can usually be used for processing ).
The second case is that the data stored in the database may also contain garbled characters. on the homepage, you need to change the database language to Chinese_PRC_CI_AS (the database attribute can be seen), and then the varchar in the database field will be, change to nvarchar
If you have any questions, contact an exclusive network technician. Http://www.sz886.com/zhishi/112102.html

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.