On the processing method of the Resonse.querystring function of Chinese character parameter transmission error in asp.net

Source: Internet
Author: User
Asp.net| Error | function | Chinese character Recently, when dealing with the resonse.querystring function of the Chinese character parameter transmission, the failure to pass the parameters of the exact value of the error, after analysis, found that the web.config in the encoding and globalization settings are not correct, first posted out, lest colleagues make the same mistake again:

1. First line: <?xml version= "1.0" encoding= "Utf-8" >=><?xml version= "1.0" encoding= "GB2312"?>
2, <!--globalization
This section sets the globalization settings for the application.
-->
<globalization
Requestencoding= "Utf-8"
Responseencoding= "Utf-8"
/>
Change to:
<!--globalization
This section sets the globalization settings for the application.
-->
<globalization
Requestencoding= "GB2312"
Responseencoding= "GB2312"
/>

It is correct to pass the Chinese character parameter again.


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.