如何在QueryString中传递中文字符串?
问题描述:
我无法在查询字符串中粘贴中文数据.并在标签中设置数据显示???-???
这仅在IE中发生,而在Mozilla中则没有.
我能知道为什么会这样吗?请帮助我.我被卡住了
I m unable to pas chinese data in querystring. and setting the data in label shows ???-???
This is happeneing only in IE and not in Mozilla .
Can i know why is this happening.Plz help me out. i got stuck
答
如果在发送之前对其进行编码,而在接收之后对其进行解码,则应该可以正常工作.
http://msdn.microsoft.com/en-us/library/zttxte6w.aspx
http://msdn.microsoft.com/en-us/library/6196h3wt.aspx
It should work fine if you encode it before you send and decode it after you receive.
http://msdn.microsoft.com/en-us/library/zttxte6w.aspx
http://msdn.microsoft.com/en-us/library/6196h3wt.aspx