Skip to content

LathamZ/ECCorrect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ECCorrect

A python software which can detect & correct the encoding of your file. Powered by Chardet.

The current routine of this software is:

  1. Detect the encoding of your file.
  2. Decode the file using the encoding detected.
  3. Encode the content with preferred encoding(See how to config below) and save to the file.

Installation

In the project directory.

$ python setup.py install

if you encountered permission problem, use sudo.

$ sudo python setup.py install

Usage

$ eccorrect filename

for details:

$ eccorrect -h

Configuration

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.

License

MIT

About

A python software which can detect & correct the encoding of your file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages