2012年11月8日
摘要: ASP.net中的Server.UrlEncode函数和ASP中的Server.URLEncode函数返回的值不一样。试验代码:ASP.net 中:Response.Write(Server.UrlEncode("汇编"));返回:%e6%b1%87%e7%bc%96ASP 中: Response.Write Server.URLEncode("汇编") 返回:%BB%E3%B1%E0产生这个问题的原因:ASP.net 中的 Server.UrlEncode 默认是按照 UTF-8 编码方式进行处理的 ASP中是按照本地设置编码方式进行处理的。如果你在 阅读全文
posted @ 2012-11-08 22:32 WIND4444 阅读(176) 评论(0) 推荐(0)