C#中将网址编码过的URL转化成认识的汉字
比如:
string strEncode = "hello=%C4%E3%BA%C3%B0%A1";
string strEdcode = System.Web.HttpUtility.UrlDecode(strEncode, System.Text.Encoding.GetEncoding("GB2312"));
这样,strEncode的值就是"hello=你好啊";
发表时间: 2005-05-23 20:56
[ 此贴被XChinux在2005-08-13 09:09重新编辑 ]