怎么把中文转化为这种呢%E7%94%B5%E5%8A%A8%E8%BD%A6%E7%94%B5%E6%B1%A0

chinadforce 2008-07-28 10:49:59
si
...全文
25456 52 打赏 收藏 转发到动态 举报
写回复
用AI写文章
52 条回复
切换为时间正序
请发表友善的回复…
发表回复
cdygf 2008-07-29
  • 打赏
  • 举报
回复
mark
izee 2008-07-29
  • 打赏
  • 举报
回复
这么多分,太浪费了。。。
我姓区不姓区 2008-07-29
  • 打赏
  • 举报
回复
看能不能蹭点分
mengjun5200 2008-07-29
  • 打赏
  • 举报
回复
C# code protected void Page_Load(object sender, EventArgs e)
{
Response.Write(Server.UrlDecode("%E7%94%B5%E5%8A%A8%E8%BD%A6%E7%94%B5%E6%B1%A0"));
Response.Write(Server.UrlEncode("电动车电池"));
}


用这个没错的,都是可以实现的
pdsnet 2008-07-29
  • 打赏
  • 举报
回复
HttpUtility.UrlEncode 我用这个.
xgg337027773 2008-07-29
  • 打赏
  • 举报
回复
[Quote=引用 38 楼 meixiafeng 的回复:]
引用 1 楼 amandag 的回复:
C# code protected void Page_Load(object sender, EventArgs e)
{
Response.Write(Server.UrlDecode("%E7%94%B5%E5%8A%A8%E8%BD%A6%E7%94%B5%E6%B1%A0"));
Response.Write(Server.UrlEncode("电动车电池"));
}
[/Quote]
尐孑 2008-07-29
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 amandag 的回复:]
C# code protected void Page_Load(object sender, EventArgs e)
{
Response.Write(Server.UrlDecode("%E7%94%B5%E5%8A%A8%E8%BD%A6%E7%94%B5%E6%B1%A0"));
Response.Write(Server.UrlEncode("电动车电池"));
}
[/Quote]
Jinglecat 2008-07-29
  • 打赏
  • 举报
回复
HttpContext.Current.Server.UrlDecode
HttpContext.Current.Server.UrlEncode
sj6071 2008-07-29
  • 打赏
  • 举报
回复
[Quote=引用 27 楼 opec 的回复:]
引用 20 楼 SeerMi 的回复:
Server.UrlEncode(string) 对串进行编码,得到你想要的格式

Server.UrlDecode(string) 对已经编码的串进行解码,得到相应的原数据

原来是这样,这就可以理解1楼的回复了。谢谢
[/Quote]
sxu_nono 2008-07-29
  • 打赏
  • 举报
回复
啥不说了,凑个热闹
masson_ma 2008-07-29
  • 打赏
  • 举报
回复
看 HttpUtility 的方法
zkcq2004 2008-07-29
  • 打赏
  • 举报
回复
jf
hy_lihuan 2008-07-29
  • 打赏
  • 举报
回复
jf
kwh050101 2008-07-29
  • 打赏
  • 举报
回复
[Quote=引用 26 楼 suyiming 的回复:]
C# code protected void Page_Load(object sender, EventArgs e)
{
Response.Write(Server.UrlDecode("%E7%94%B5%E5%8A%A8%E8%BD%A6%E7%94%B5%E6%B1%A0"));
Response.Write(Server.UrlEncode("电动车电池"));
}
[/Quote]
liyong11111 2008-07-29
  • 打赏
  • 举报
回复
[Quote=引用 7 楼 izee 的回复:]
这么多分,太浪费了。。。
[/Quote]
liyong11111 2008-07-29
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 amandag 的回复:]
C# code protected void Page_Load(object sender, EventArgs e)
{
Response.Write(Server.UrlDecode("%E7%94%B5%E5%8A%A8%E8%BD%A6%E7%94%B5%E6%B1%A0"));
Response.Write(Server.UrlEncode("电动车电池"));
}
[/Quote]
zkb9604 2008-07-29
  • 打赏
  • 举报
回复
[Quote=引用 11 楼 yangpeiyu 的回复:]
Server.UrlDecode
Server.UrlEncode
[/Quote]
dotnetsong 2008-07-29
  • 打赏
  • 举报
回复
Server.UrlEncode(string) 对串进行编码,得到你想要的格式

Server.UrlDecode(string) 对已经编码的串进行解码,得到相应的原数据
碑文 2008-07-29
  • 打赏
  • 举报
回复
[Quote=引用 20 楼 SeerMi 的回复:]
Server.UrlEncode(string) 对串进行编码,得到你想要的格式

Server.UrlDecode(string) 对已经编码的串进行解码,得到相应的原数据
[/Quote]
原来是这样,这就可以理解1楼的回复了。谢谢
suyiming 2008-07-29
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 amandag 的回复:]
C# code protected void Page_Load(object sender, EventArgs e)
{
Response.Write(Server.UrlDecode("%E7%94%B5%E5%8A%A8%E8%BD%A6%E7%94%B5%E6%B1%A0"));
Response.Write(Server.UrlEncode("电动车电池"));
}
[/Quote]
加载更多回复(32)

62,074

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧