Solved the problem that ASP. NET could not accept Chinese parameter values.

Source: Internet
Author: User
Modify the globalization section in the web. config file today.

Requestencoding = "gb2312"
Responseencoding = "gb2312"
The content is changed to the original default UTF-8. Later, we found that all interfaces were created, and some were scripts and some were styles. In the afternoon, I tried to demonstrate the system. I did not find the cause after I found the big pass. I finally noticed this point.
Later, I will see an article about. net. Article: A Situation in Asp.net that cannot accept the post parameter is similar to mine. It seems that this problem should have a great impact.
I used to think it was a coding problem, but I didn't take it into account because of the problem set here.. NET Request cannot obtain the correct Chinese parameter. Solution: [base64 encoding/decoding]. Here, I wanted to use the script to encode it again. I tried it, this is also a normal situation, but with this added, you cannot use your script to write it again.

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.