.net/js urlencode

Server.UrlEncode("中文")
HttpUtility.UrlEncode("中文", Encoding.Default)
HttpUtility.UrlEncode("中文", Encoding.Unicode)
HttpUtility.UrlEncode("中文", Encoding.BigEndianUnicode)

HttpUtility.UrlEncode("中文", Encoding.GetEncoding("gb2312")

Server.UrlDeCode

HttpUtility.UrlDeCode

js:

escape/unescape : %u1234

encodeURI/decodeURI : %12%34

posted @ 2010-08-30 12:00  liningit  阅读(167)  评论(0编辑  收藏  举报