Sujet : Re: How to convert <binaryGlowMixedWithASCII> to pure ASCII
De : * (at) *nospam* eli.users.panix.com (Eli the Bearded)
Groupes : comp.unix.shellDate : 12. May 2025, 21:21:15
Autres entêtes
Organisation : Some absurd concept
Message-ID : <eli$2505121609@qaz.wtf>
References : 1 2 3 4
User-Agent : Vectrex rn 2.1 (beta)
In comp.unix.shell, Nuno Silva <
nunojsilva@invalid.invalid> wrote:
The only thing that occurs to me right now is passing it through iconv
to a more limited charset using transliteration (e.g. "iconv -f utf8 -t
iso8859-1//TRANSLIT -c") and then back to the desired encoding and
charset.
Hah. That style iconv fix was going to be my suggestion.
(But I suppose if this is already involving perl, then perhaps such a
modification can be done through perl too.)
I have a number of vim map commands to fix things I paste into news
posts. I created a perl script that can do the same thing a few years
ago for another request.
If people want it, I've copied it here:
https://qaz.wtf/C/textifyThe mappings include UTF-8 and broken UTF-8, so technically it is a
binary file. That's why I don't post the source here.
Elijah
------
no longer encounters the broken lynx UTF-8 mentioned there