Sujet : Re: How to convert <binaryGlowMixedWithASCII> to pure ASCII
De : jpstewart (at) *nospam* personalprojects.net (John-Paul Stewart)
Groupes : comp.unix.shellDate : 04. May 2025, 20:56:13
Autres entêtes
Message-ID : <m7pv2tFgsp1U1@mid.individual.net>
References : 1 2 3
User-Agent : Mozilla Thunderbird
On 2025-05-04 2:33 p.m., Kenny McCormack wrote:
In article <vv8bb2$2f5m5$2@dont-email.me>,
Lew Pitcher <lew.pitcher@digitalfreehold.ca> wrote:
AFAIK, there aren't any /standard/ utilities that convert to and from punycode.
However, there are /libraries/ that handle punycode (libidn[2], for one).
"standard" doesn't really matter much to me. If there is a tool out there,
in any form, from any source, I'd like to hear about it.
Generally, when there is a library to do something, there is a program
written to access the functionality in that library - i.e., a "thin
wrapper" around the library. Sounds like that program is what I am looking
for.
Indeed, there is an "idn" tool as part of the libidn source. The binary
is in a separate package from the library on Debian. Perhaps that tool
will do what you want in the shell.
I don't know how it might be packaged for non-Debian distributions or
non-Linux OSes. Maybe with the library, maybe not.
(BTW, I too have looked for such a tool in the past and come up empty.
The previous poster's mention of "punycode" and "libidn" were super
helpful to me, too. Thanks Lew!)