Stefan am :
Danke! Genau das, brauche ich auch immer wieder. Habe ich mir als Funktion in meine bashrc hinterlegt.
Danke! Genau das, brauche ich auch immer wieder. Habe ich mir als Funktion in meine bashrc hinterlegt.
Bitte. Laut Foren funktioniere es nicht in jedem Fall, konnte das aber noch nicht beobachten.
Schon mal convmv probiert?
Das wäre scheinbar nur ein Ersatz für iconv...
Funktioniert auf einem Ubuntu 12 Server perfekt und besser als viele kompliziertere Lösungen - Danke für den Tipp!
Bitte.
Ich hab mir anlässlich deines Kommentars angeguckt, wie file das macht. Laut manpage ist das auch kein unzuverlässiges Voodoo, sondern file geht genau so vor, wie man es erwartet:
...it is examined to see if it seems to be a text file. ASCII, ISO-8859-x, non-ISO 8-bit extended-ASCII character sets (such as those used on Macintosh and IBM PC systems), UTF-8-encoded Unicode, UTF-16-encoded Unicode, and EBCDIC character sets can be distinguished by the different ranges and sequences of bytes that constitute printable text in each set.