# National characters in URLs not working with hyperref [duplicate]

Consider the following example:

\documentclass[a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[danish]{babel}
\usepackage{url}
\usepackage{hyperref}
\begin{document}
\url{http://da.wikipedia.org/wiki/Topologi}

\url{http://da.wikipedia.org/wiki/Topologisk_rum}

\url{http://da.wikipedia.org/wiki/Åben_mængde}

\url{http://da.wikipedia.org/wiki/Homøomorfi}

\url{http://da.wikipedia.org/wiki/Hausdorffrum}

\end{document}


When not using hyperref the result comes out as expected. Adding hyperref gives me something similar to

http://da.wikipedia.org/wiki/Åben_m\T1\aengde


anyone have any idea how to fix this? There is nothing wrong with the URL.

-

## marked as duplicate by diabonas, doncherry, topskip, Torbjørn T., Loop SpaceOct 31 '11 at 11:29

Slightly off-topic perhaps there is something wrong with the url. According to the RFC for URL only a-zA-Z0-9 and some special characters \$,-,_,.,+,!,*,',(,),"," where the "," represents a ,. Other characters can be encoded using % hex hex where hex follows 0-9[A-F|a-f]. Apparently this RFC is no longer used? –  Roelof Spijker Oct 31 '11 at 10:25
As far as I know, the use of national chars in URLs have been allowed for some time. –  daleif Oct 31 '11 at 10:47
This example works out of box in XeLaTeX. –  Andrey Vihrov Oct 31 '11 at 10:51
Use \href{http://da.wikipedia.org/wiki/%C3%85ben_m%C3%A6ngde}{http://da.wikipedia.o‌​rg/wiki/Åben_mængde} instead. You have to encode the URL, for example using the W3 URL encoder. –  matth Nov 10 '11 at 15:49

\href{http://da.wikipedia.org/wiki/\string Åben_m\string ængde}{http://da.wikipedia.org/wiki/Åben\string_mængde}