solution
-
find out character encoding of a file
$ file --mime-encoding filename filename: ISO-8859-1 -
check this kind of text encoding is supported
$ iconv -l | grep ISO-8859-1 -
convert
ISO-8859-1toUTF-8$ iconv -f ISO-8859-1 -t UTF-8 filename > filenewname