'Ubuntu 22.04 IDN domain.com idn: could not convert from ASCII to UTF-8
In Ubuntu 20.04 and older (And Debian 11, 10 and 9) I can convert Puny code domains with idn to UTF-8 / IDN format
idn -t --quiet -a "xxx-tést.eu"
Works fine or the other way around
idn -t --quiet -u "xn--xxx-tst-fya.eu"
Also the conversion back from IDN to puny code works as expected: idn -u "xn--xxx-tst-fya.eu" returns me the correct domain.
Now Im currently working on Ubuntu 22.04 / Jammy support:
idn -a "xxx-tést.eu"
idn: could not convert from ASCII to UTF-8
And
idn -u "xn--xxx-tst-fya.eu"
idn: could not convert from UTF-8 to ASCII
On Ubuntu 20.04 I was able to resolve the similar issues when I had issues by setting: export LC_ALL=C.UTF-8 how ever on Ubuntu 22.04 I am not able to solve the issue.
Please note I am also experiencing this issue with other IDN domains
Description: Ubuntu 22.04 LTS Release: 22.04
root@test:~# apt list idn Listing... Done idn/jammy,now 1.38-4build1 amd64 [installed]
Any idea how to solve this issue?
Solution 1:[1]
idn2 -d "xn--xxx-tst-fya.eu"
seems to be working
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Jeremy Caney |