开发者

Chinese Characters are displayed as junk characters in asp.net

开发者 https://www.devze.com 2023-01-12 18:06 出处:网络
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 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号