What is the proper way to generate punycode URIs using either \url or \href?
MWE using lualatex:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[unicode=true]{hyperref}
\begin{document}
\href{http://π.example.com/}{http://π.example.com/}
\end{document}
The PDF generates as "http://.example.com/" instead of the punycoded "http://xn--1xa.example.com". I need the link to show up in the language of my target audience inside of their PDF readers, so they should be able to see http://π.example.com/ when they hover over the link. Using the percent-code shows up correctly in the pdf viewer:
http://\%CF\%80.example.com/
but takes you to %CF%80.example.com rather than xn--1xa.example.com.
