Skip to main content

Convert encoding of given file from one encoding to another.

Project description

Convert encoding of given file from one encoding to another.

Install

pip install transencoding

Usage

E:\transencoding>python transencoding.py --help
Usage: transencoding.py [OPTIONS] [INPUT]

Options:
-f, --from-code TEXT  Encoding of original text  [required]
-t, --to-code TEXT    encoding for output  [required]
-o, --output TEXT     output file
--help                Show this message and exit.

Example

将utf8.txt中的utf8编码的文本转化为gbk编码,并保存到gbk.txt文件中。

E:\transencoding>python transencoding.py -f utf8 -t gbk utf8.txt > gbk.txt

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for transencoding, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size transencoding-0.1.0.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page