Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mojibakes and question symbols for non-latin symbols #286

Closed
sindzicat opened this issue Jun 23, 2023 · 2 comments
Closed

Mojibakes and question symbols for non-latin symbols #286

sindzicat opened this issue Jun 23, 2023 · 2 comments

Comments

@sindzicat
Copy link

Hello!

Lets say we have the following code:

\documentclass{article}

\usepackage[utf8]{inputenc}
\usepackage[T2A]{fontenc}
\usepackage[russian]{babel}

\usepackage[colorlinks=true,urlcolor=blue, unicode=true]{hyperref}

\begin{document}
    
    \href{https://ru.wikipedia.org/wiki/Праща}{праща}
    
    \nolinkurl{https://ru.wikipedia.org/wiki/Праща}

\end{document}

After compiling via PDFLatex I see the following:

image

The end of \nolinkurl output contains mojibakes.

When I hover cursor over blue hyperlink, I see correct text in popup, but when I click this link, uncorrect url https://ru.wikipedia.org/wiki/????? is opened in browser.

Please help me to fix this for PdfLatex. I tried to goole this problem, but didn't find anything.

@u-fischer
Copy link
Member

You need to percent encode the url in the \href. And with pdflatex you can't use non-ascii chars in \nolinkurl, that is not supported.

See also https://tex.stackexchange.com/a/672447/2388 and https://tex.stackexchange.com/a/670811/2388

Please help me to fix this for PdfLatex

this here is not a support forum but a bug tracker. Please ask such question e.g. on tex.stackexchange.

@sindzicat
Copy link
Author

@u-fischer, thanks for answer. I was sure I found a bug and that some workaround may exists.

Is this possible to fix this in the future?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants