简体   繁体   English

没有UrlEncoding的ASP Response.Redirect

[英]Asp Response.Redirect without UrlEncoding

I'm using Response.Redirect to redirect users to some user specified urls. 我正在使用Response.Redirect将用户重定向到某些用户指定的url。

The "problem" arises as users specifies urls as www.æøå.dk, which is a legal url, but is encoded as the following by Response.Redirect: 当用户将网址指定为www.æøå.dk(合法网址)时,就会出现“问题”,但Response.Redirect会将其编码为以下内容:

www.%c3%a6%c3%b8%c3%a5.dk - since æøå is considered special characters. www。%c3%a6%c3%b8%c3%a5.dk-因为æøå被视为特殊字符。 Is there any way to allow æøå not to be encoded? 有什么方法可以让æøå不被编码?

Such a domain is called an IDN . 这样的域称为IDN You may get further using System.Uri . 您可以进一步使用System.Uri There is a section called "International Resource Identifier Support" on that page. 该页面上有一个名为“国际资源标识符支持”的部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM