简体   繁体   中英

Asp Response.Redirect without UrlEncoding

I'm using Response.Redirect to redirect users to some user specified urls.

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.%c3%a6%c3%b8%c3%a5.dk - since æøå is considered special characters. Is there any way to allow æøå not to be encoded?

Such a domain is called an IDN . You may get further using System.Uri . There is a section called "International Resource Identifier Support" on that page.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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