Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Problem with language specific characters in url


I just noticed a problem with url's containing language specific characters like. We have a norwegian customer whos url contains the letters ø and æ. The url is enterd via a short string input box. Before the url is posted on the page it is checked and cleaned up and while debugging the characters are correctly spelled in the url but as soon as they get printed to the hyperlink in markup ø becomes %c3%b8 and æ beomces %c3%a6.

Is there any way to prevent this from happening?

Mar 07, 2012 14:12


If you are using the content as an URI it will probably be parsed using the .NET URI class. The default behaviour for this class is to not support IDN:s (Internationalized Domain Names) and IRI (International Resource Identifiers). You can configure this class to support IDN:s and IRI:s ( I have not personally tested this but it would be interesting to know if this helps you.

It could also be good to know that EPiServer does not currently support IDN:s and IRI:s for built in functionality since were using custom URI classes that use the URI RFC which basicaly allows characters from the ASCII set.

Linus Ekström
EPiServer Development Team 

Mar 08, 2012 9:23

Thanks for the reply, Linus! Good to know!

Jul 30, 2014 17:51
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.