I have a file that is described on Unix as:
$file xxx.csv xxx.csv: UTF-8 Unicode text, with very long lines
A look in less / vi will make some special characters (ßÄ ° ...) unreadable (├╝); Windows also will not display it; When importing it directly into db, just change the special characters to some other special characters (+ ä, + ñ, ...).
I would like to convert it now to a “standard readable” encoding using iconv. When I try to convert it with iconv
$iconv -f UTF-8 -t ISO-8859-1 xxx.csv > yyy.csv iconv: illegal input sequence at position 1234
using UNICODE as input and UTF-8 as output, the same message will be returned
I assume the file is somewhat encoded in a different format that I don’t know - how can I find out which format to convert it to something “universally” readable ...
RRZ Europe
source share