Convert text file encoding to UTF-8.
$ utf8ify.py -o coverted.txt input.txt
or else:
$ utf8ify.py - < input.txt > converted.txt
Convert without chardet package:
$ utf8ify.py --nochardet -e euc-jp input.txt > converted.txt
If the input encoding does not be determined by the chardet package, the encoding specified with --encoding
option will be used to convert the input, which will come in handy when you want to convert a lot of text files.
This program is licensed under The MIT License. See LICENSE for the full text of the license.