1304519483_tux

Möchte man auf der bash das Encoding einer Datei konvertieren, stehen einem eine Handvoll Möglichkeiten zur Verfügung. Am komfortabelsten ist – meiner Ansicht nach – das Tool iconv:

$ iconv -f ISO_8859-15 -t UTF-8 file > file

Dieser Aufruf konvertiert die Datei "file" von iso-8859-15 nach utf-8.

Möchte man eine vollständige Lister aller Verfügbarer Zeichensätze, übergibt man den Parameter -l

$ iconv -l

Ähnliche Artikel

One Comment to “[BASH] Datei nach UTF-8 konvertieren”

  • It topic has been up for argument very a lot of times but not one of the posts had been as detailed as yours. Admin I wish to see such high quality posts from you in the future.

Post comment