Chinese Characters are displayed as junk characters in asp.net
I have sent Chinese text to the other page as a querystring. Before that i have stored the text in the variable. When i check the text in the debug mode it displayed as junk characters. I have used the following in the ASPX page,
<meta http-equiv="content-type" content="text/html;charset开发者_StackOverflow社区=utf-8">
But still it is displayed junk characters.
Is there anything i need to change to display the valid unicode text?
Your meta tag is malformed. It should be:
<meta http-equiv="content-type" content="text/html;charset=utf-8">
charset
is not an attribute on its own, but part of the content
attribute.
See w3.
精彩评论