|
||
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
| ...
|
The Unicode byte order (for the input or output file) is big endian. |
|
The Unicode byte order (for the input or output file) is little endian. |
|
A byte order mark is added to the Unicode output. If specified, the Unicode byte order must also be specified. |
|
The encoding and (optional) filename of the input file. |
|
The encoding and (optional) filename of the output file. |
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