skip to Main Content

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 I’m 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. However 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?

2

Answers


  1. Chosen as BEST ANSWER
    idn2 -d "xn--xxx-tst-fya.eu" 
    

    seems to be working


  2. apt remove idn -y
    apt install idn2 -y
    ln -sf /usr/bin/idn2 /usr/bin/idn
    

    Test ok with acme.sh.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search