A python software which can detect & correct the encoding of your file. Powered by Chardet.
The current routine of this software is:
- Detect the encoding of your file.
- Decode the file using the encoding detected.
- Encode the content with preferred encoding(See how to config below) and save to the file.
In the project directory.
$ python setup.py install
if you encountered permission problem, use sudo.
$ sudo python setup.py install
$ eccorrect filename
for details:
$ eccorrect -h
YAML Supported.
You could specify your settings in .eccorrect.yaml file.
Following are currently supported fields:
- preferred_encoding (default to utf8 if not set)
- ...
The configuration file is located in your HOME directory ~/.eccorrect.yaml.