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
Metadata
Release files for transencoding 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| transencoding-0.1.0.tar.gz | 2.2 kB | Without provenance | Details for transencoding-0.1.0.tar.gz |
Release files / transencoding-0.1.0.tar.gz
| Download URL | transencoding-0.1.0.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d2967bef01ce5c0ac5215408f21f46e680dd60c211d6d710bfc578f7d367490
|
|
BLAKE2b-256 checksum How to use checksums |
030b8a4f9994f94b3746e6e481b418ee0a3ac72773c859fdfb191cf4b3e16eeb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.7
|
Security for transencoding 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.