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