MVC Solution: Page garbled when sending Chinese query string in IE browser

Source: Internet
Author: User

Today, refer to Mvcmusicstore's tutorial to start learning MVC. In the Browse page I try to send the query string in Chinese, and the result gets garbled.

When I have a problem, I look up the data and find out a lot of ways, the most mainstream way is to add to the Web. config

<globalization requestencoding= "GBK" responseencoding= "GBK" culture= "ZH-CN" fileencoding= "GBK"/> <!--or GB2312--

I queried the encoded data, fearing that non-UTF-8 encoding would cause the audience to decrease, and then tried to find a solution with UTF-8 as the default encoding.

Try to find QQ browser incredibly not garbled, so I finally found the IE garbled solution, the original is IE default settings is not reasonable caused.

Workaround:

Open Internet Options for IE, and in the tab "Advanced", find "send UTF-8 query string for intranet URI" under "International *", tick and restart IE.

The problem is solved.

Well, then I put this problem from IE browser feedback to Microsoft, I hope this option becomes the default settings, in order to avoid garbled problems.

MVC Solution: Page garbled when sending Chinese query string in IE browser

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.