I'm trying to link to a file in a folder named Códigos. My minimal code looks like this.
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\href{run:./Códigos/test.c}{\texttt{test.c}}
\end{document}
The PDF generates alright, but when I try opening the link, I realize that LaTeX has interpreted the accent as plain TeX code, and is as such unable to open the file.
I've tried using percent-encoding (writing \%F3 instead of ó), but this doesn't seem to work for file paths. I've also tried to use the verbatim package, but every time I do so, it just throws me a TeX capacity exceeded error.
Finally, I've tried using \detokenize on the file path, but when I do so, regardless of whether I use characters like ó or not, Adobe Acrobat treats the link as if I was trying to connect to it, rather than opening it, and doesn't let me open the file.