ikubaku / utf8ify

Convert text file encoding to UTF-8

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

utf8ify

Convert text file encoding to UTF-8.

Prerequisites:

  • python

  • (Optional) python-chardet

Basic usage

$ 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

Tips

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.

License

This program is licensed under The MIT License. See LICENSE for the full text of the license.

About

Convert text file encoding to UTF-8

License:MIT License


Languages

Language:Python 100.0%