It is common on French URLs to have accents (because French words have accents). The probably most known site that uses these possibility to not restrict URL to ASCII characters is Wikipedia, but also French online dictionaries uses it (as we can see in the examples provided at url hyperref does not work with French accent characters).
Here is a MWE with the examples used in the above URL (that worked at 2013, but not now).
\documentclass{article}
\usepackage{xcolor}
\usepackage[colorlinks,allcolors=blue]{hyperref}
\begin{document}
URL 1: \href{http://www.larousse.fr/dictionnaires/francais-anglais/%C3%A9cr%C3%A9mer/27576?q=%C3%A9cr%C3%A9m%C3%A9}{%
\nolinkurl{http://www.larousse.fr/dictionnaires/francais-anglais/écrémer/27576?q=écrémé}}
URL 2: \href{https://fi.wikipedia.org/wiki/Andr%C3%A9_Weil}
{\nolinkurl{https://fi.wikipedia.org/wiki/André_Weil}}
\end{document}
We obtain:
All the "é" have disappeared.
Expected:
http://www.larousse.fr/dictionnaires/francais-anglais/écrémer/27576?q=écrémé
and
https://fi.wikipedia.org/wiki/André_Weil.
Moreover, if I add \usepackage[T1]{fontenc} in the preamble, as here:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{xcolor}
\usepackage[colorlinks,allcolors=blue]{hyperref}
\begin{document}
URL 1: \href{http://www.larousse.fr/dictionnaires/francais-anglais/%C3%A9cr%C3%A9mer/27576?q=%C3%A9cr%C3%A9m%C3%A9}{%
\nolinkurl{http://www.larousse.fr/dictionnaires/francais-anglais/écrémer/27576?q=écrémé}}
URL 2: \href{https://fi.wikipedia.org/wiki/Andr%C3%A9_Weil}
{\nolinkurl{https://fi.wikipedia.org/wiki/André_Weil}}
\end{document}
I obtain this weird output:
How can I obtain:
http://www.larousse.fr/dictionnaires/francais-anglais/écrémer/27576?q=écrémé
and
https://fi.wikipedia.org/wiki/André_Weil
also with \usepackage[T1]{fontenc} in the preamble?
(An old document compiled in summer 2021 doesn't have these broken output).
Update:
Ulrike Fischer say in the answer that "url's with non-ascii-chars never worked properly with pdflatex".
But here (on other computer not updated), with TeXlive 2021 (in fact, TeXlive 2022/dev), it works:
When I click on links, the browser displays the right pages.
Proof that it's TeXlive 2021 in my other computer (via TeX Live Utility app):







\nolinkurlin the second argument you get a better output but you loose the option to (line)break the url in various places. – Ulrike Fischer Jan 06 '23 at 11:47