The Chinese garbled problem of Ajax

Source: Internet
Author: User
Yesterday encountered the Ajax Chinese garbled problem, Google on the internet a bit, the results of a lot of search, but did not help me solve the problem of garbled. I encountered the garbled problem is very strange, in some machines are not garbled, and some garbled. The machine that does not appear garbled is the XP system installs the VS2003 and installs the VS2005, or is win2003.
Later, because to do a function, to the configuration file to write things. See
<globalization
Requestencoding= "gb2312"
Responseencoding= "gb2312"
/>
I used the gb2312 code, I changed the responseencoding to Utf-8 is not garbled, requestencoding did not change.
Do not change requestencoding brought the problem, post data, write into the database is garbled.
So I changed requestencoding for Utf-8.
The problem again, because a page with a user's JS special Effects--div Style window, loading the page when prompted script error, this div also Ajax.
It's requestencoding's problem.
Now I'm still studying what causes the problem.
To avoid scripting errors, join the web.config
<loaction> section Local Settings
There is no problem.
Http://www.cnblogs.com/gsl/archive/2006/10/28/542612.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.