2020-02-08

Convert Latin1 text to UTF8

One can use Python as a universal converter on the command line like this:
cat latin1.txt | python3 -c "import sys; t=sys.stdin.buffer.read(); sys.stdout.buffer.write(t.decode('iso-8859-1').encode('utf8'))" > utf8.txt

Keine Kommentare: