 |
| 我的知识库 |
 |
|
|
url传递中文的解决方案 |
|
[ 作者: | 文章来源: 网页教学网 | 点击数: 564 | 更新时间: 2007-10-13 17:40:39 ] |
1、设置web.config文件。
Spdns^com
2、传递中文之前,将要传递的中文参数进行编码,在接收时再进行解码。 Www.Spdns.com
以下为引用的内容: >> 进行传递 string Name = "中文参数"; Response.Redirect("B.aspx?Name="+Server.UrlEncode(Name)); >> 进行接收 string Name = Request.QueryString["Name"]; Response.Write(Server.UrlDecode(Name)); |
中国南通服务器网,为中文网南通服务器网
以下为引用的内容: >> 进行传递 >> 进行接收 string Name = Request.QueryString["Name"]; Response.Write(Server.UrlDecode(Name)); |
中国.南通服务器网
一般来说。设置web.config文件就可以了。但是如果你用 JavaScript 调用 webservice 方法的话(往webservice里面传递中文参数)。设置 web.config 文件好象无效。 中国南通服务器网
|
|
|
|
|