The charconv
utility converts text files between character set encodings.
charconv
[-big
| -little
] [-byteordermark
] -input=
encoding
input_filename
-output=
encoding
output_filename
Where encoding is:
unicode
| utf8
| big5
| gb2312
| ...
|
To convert a text file written in ISO-8859-2 into UTF-8, first convert it into Unicode:
> charconv -input=Iso88592 iso88592File.txt -output=unicode unicodeFile.txt
Then convert it into UTF-8:
> charconv -input=unicode unicodeFile.txt -output=utf8 utf8File.txt