# The spaces in a URL are wrongly encoded [closed]

My browser fails to navigate when I click the hyperlink on the produced PDF.

\documentclass{article}
\usepackage{filecontents}
\begin{filecontents*}{"a b c.tex"}
one
two
\end{filecontents*}

\usepackage{listings}
\PassOptionsToPackage{obeyspaces}{url}
\usepackage{hyperref}

\begin{document}
\lstinputlisting[caption={\url{a b c.tex}}]{"a b c.tex"}
\end{document}


The screenshots below tell you the details.

Shortly speaking, how to fix this issue?

Edit:

I used pdflatex from TeX Live 2012. My PDF viewer is Adobe Reader 11 (version 11.0.1). My browser is Google Chrome(Version 24.0.1312.57m).

-
It does not help, but it is always a very bad idea to use space in url (and file names). – Lionel MANSUY Feb 15 at 12:17
As a note: this strongly depends on what TeX interpreter you use and which PDF program. I've tested your code with SumatraPDF and Adobe Reader, using PDFLatex to create the PDF and it works fine with both Google Chrome and Mozilla Firefox. – Mythio Feb 15 at 12:28
AFAIK this is a bug in newer versions of Acrobat. – Heiko Oberdiek Feb 15 at 13:41

## closed as off topic by mafp, lockstep, Thorsten, Click Me, Willie WongFeb 15 at 17:00

Questions on TeX - LaTeX Stack Exchange are expected to relate to TeX, LaTeX or related typesetting systems within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.