[linux-l] quoted printable dekodieren -> qprint

Frank Reker frank at reker.net
Fr Jul 9 14:46:44 CEST 2021


Hallo

Am Fr 09. Jul 2021 01:35 +0200 schrieb Boris Kirkorowicz via linux-l:
>das hat ein ähnliches Problem wie recode, z.B:
>> Error: bad equal sign escape "=UT" at byte 981781 (0xEFB15) of input.

tja, =UT ist natuerlich auch kein quoted-printable.
Das was nach dem = kommt muss ein hex-code sein
also 00 bis ff
buchstaben > f ist da nicht gueltig.
Und:
#> echo "=UT" | recode utf-8/quoted-printable..utf-8
recode: Ungültige Eingabe bei Schritt »Quoted-Printable..data«

Da hast du deinen Fehler.
Deine Eingabe ist schlicht falsch.

Du kannst recode ein --force mitgeben. Dann ist er fehlertoleranter
#> echo "=UT" | recode -f utf-8/quoted-printable..utf-8
UT

Und du kannst wirklich recode -f utf-8/quoted-printable..utf-8 "$file" >> "$outfile"
machen, ist erheblich schneller. Immer wenn man in bash Zeilenweise parst
ist das seeehr langsam.



-- 
Don't worry be happy ...
Ciao Frank Reker



Mehr Informationen über die Mailingliste linux-l