• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

ISO-8859-1 Datei in UTF8 konvertieren

ceegee

Hacker
Hallo,

ich bekomme von einem Windows Rechner Dateien aus denen ich per Script Daten raushole und in eine andere Datei schreibe. Die Daten scheinen aber in ISO-8859-1 kodiert zu sein. Zumindest sagt das ein "file" auf die Datei. Umlaute werden als 3-stellige Zahl dargestellt. Z.B. ü als 374. Kann man diese Datei nun nach UTF8 konvertieren?

Gruß,

Christian
 

Leviathan

Hacker
hi,

siehe iconv --help

Code:
Usage: iconv [OPTION...] [FILE...]
Convert encoding of given files from one encoding to another.

 Input/Output format specification:
  -f, --from-code=NAME       encoding of original text
  -t, --to-code=NAME         encoding for output

 Information:
  -l, --list                 list all known coded character sets

 Output control:
  -c                         omit invalid characters from output
  -o, --output=FILE          output file
  -s, --silent               suppress warnings
      --verbose              print progress information

  -?, --help                 Give this help list
      --usage                Give a short usage message
  -V, --version              Print program version

Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options.

For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
 
Oben