Which HttpUtility can support all the symbol on keyboard,able to write style html and support different language(japanese,veitnam,englishand thai)?
I am开发者_运维知识库 using extjs interface and pass in to C# to save string ,but when saved it become other symbol like save symbol "!@#$%^&*()_+{}|:"<>?" it will become other symbol to represent them,i am using code below to try accepted all symbol,but still got some symbol cannot support,i confuse with this.hope can share yours exp to me thanks.
my extjs code:
msg: decodeURI(Ext.getCmp('txt').getValue())
or
msg: encodeURI(Ext.getCmp('txt').getValue())
to my C# code:
HttpUtility.HtmlEncode(Request.Params["msg"])
or
HttpUtility.HtmlDecode(Request.Params["msg"])
or HttpUtility.UrlEncode(Request.Params["msg"])
or
HttpUtility.UrlDecode(Request.Params["msg"])
Make sure that you are sending and receiving messages in UTF-8.
精彩评论