【问题标题】:Special characters in Response.RedirectPermanentResponse.RedirectPermanent 中的特殊字符
【发布时间】:2013-04-12 04:23:35
【问题描述】:

我正在重定向到一个包含一些德语特殊字符的 URL,例如:ü .

虽然在 Firefox 中这个特殊字符保持原样:ü,但在 IE 和 Chrome 中它被更改为:%c3%bc。

如何防止这种情况在 IE 和 chrome 中发生? 我正在使用 Response.RedirectPermanent() 。

【问题讨论】:

标签: asp.net c#-4.0 redirect response.redirect


【解决方案1】:

这种转换不会改变任何东西。根据要求,它将被转换回来。发生这种转换是因为 URL 中的字符有限。更多信息请查看http://www.blooberry.com/indexdot/html/topics/urlencoding.htm

【讨论】:

    猜你喜欢
    • 2014-11-03
    • 1970-01-01
    • 1970-01-01
    • 2015-10-21
    • 2012-09-08
    • 2011-07-28
    • 2010-09-21
    • 2014-06-29
    • 2015-06-11
    相关资源
    最近更新 更多