如何在QueryString中传递中文字符串? [英] how to pass the chinese string in QueryString?
本文介绍了如何在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
这篇关于如何在QueryString中传递中文字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文