iis中让url传递中文会出现乱码,如何配置

[复制链接]
查看11 | 回复2 | 2007-9-25 08:27:12 | 显示全部楼层 |阅读模式
//如果是用JS传递中文var name = escape(name);//如果是用C#//发送:string strInfo = Server.UrlEncode(string s);//对字符串进行URL编码//接收:string strInfo = Server.UrlDecode(string s);//对URL中接收的HTML的字符串进行解码
回复

使用道具 举报

千问 | 2007-9-25 08:27:12 | 显示全部楼层
参考一下:http://topic.csdn.net/t/20050322/20/3872439.htmlhttp://topic.csdn.net/t/20030730/19/2090825.html
回复

使用道具 举报

千问 | 2007-9-25 08:27:12 | 显示全部楼层
不怎么好弄啊
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行