How to transmit garbled values to the Asp.net page using the get Method on an HTML page

Source: Internet
Author: User
This problem was recently discovered by accident. My friend said that I personally worked on the Lucene-based search engine, and there was a problem that I could only search for English but not Chinese.
I put CodeI checked it carefully and did not find any problems, but such problems did exist during the test.
I checked that all the parameters after passing values are garbled or spaces. I immediately felt that they were Encoding Problems During the transfer process.
Add <globalization requestencoding = "UTF-8" responseencoding = "UTF-8"/> in Web. config
<Meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8"> change chaset to UTF-8 to solve the problem. You can also change both to gb2312.
According to my observation, Baidu uses gb2312 and the blog garden looks for UTF-8.
Pay attention to these detailed questions in the future, and write them down and give them a prompt.

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.