gpt4 book ai didi

Ubuntu 22.04 IDN domain.com idn : could not convert from ASCII to UTF-8

转载 作者:行者123 更新时间:2023-12-04 19:24:49 29 4
gpt4 key购买 nike

在 Ubuntu 20.04 及更早版本(以及 Debian 11、10 和 9)中,我可以将带有 idn 的 Puny 代码域转换为 UTF-8/IDN 格式

idn -t --quiet -a "xxx-tést.eu"
工作正常或相反
idn -t --quiet -u "xn--xxx-tst-fya.eu"
此外,从 IDN 转换回微不足道的代码也可以按预期工作:
idn -u "xn--xxx-tst-fya.eu"向我返回正确的域。
现在我目前正在开发 Ubuntu 22.04/Jammy 支持:
idn -a "xxx-tést.eu"
idn:无法从 ASCII 转换为 UTF-8
idn -u "xn--xxx-tst-fya.eu"
idn: 无法从 UTF-8 转换为 ASCII
在 Ubuntu 20.04 上,当我遇到问题时,我可以通过设置解决类似的问题: export LC_ALL=C.UTF-8 但是在 Ubuntu 22.04 上我无法解决问题。
请注意,我在使用其他 IDN 域时也遇到了这个问题
说明:Ubuntu 22.04 LTS
发布时间:22.04
root@test:~# apt list idn
list ...完成
idn/jammy,现在 1.38-4build1 amd64 [已安装]
知道如何解决这个问题吗?

最佳答案

idn2 -d "xn--xxx-tst-fya.eu" 
似乎在工作

关于Ubuntu 22.04 IDN domain.com idn : could not convert from ASCII to UTF-8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72128160/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com