Some character encoding utils.
Project description
Character Encoding Utils
Some character encoding utils.
Now support:
Installation
pip install character-encoding-utils
Usage
GB2312
from character_encoding_utils import gb2312
bs = gb2312.encode('abc中国')
assert gb2312.decode(bs) == 'abc中国'
Big5
from character_encoding_utils import big5
bs = big5.encode('abc中國')
assert big5.decode(bs) == 'abc中國'
Shift-JIS
from character_encoding_utils import shiftjis
bs = shiftjis.encode('abc日本')
assert shiftjis.decode(bs) == 'abc日本'
KS-X-1001
from character_encoding_utils import ksx1001
bs = ksx1001.encode('abc가쳰')
assert ksx1001.decode(bs) == 'abc가쳰'
License
Under the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for character-encoding-utils-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d96ba66c658eaccf85d0bfdfe7427b936888f1bc71f2cd156071213d9c0169da |
|
MD5 | c50f215f04a86c4992e1e2e6897b82c1 |
|
BLAKE2b-256 | e8573a4751df1d1f797e6cfd2fcbb8b16463602e4948913e36492c48a4cd4cda |
Close
Hashes for character_encoding_utils-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d9fc170fbbd0bc55223ce6d6357f930e412858b688a68e3f4a52ea733e78b52 |
|
MD5 | 61fb1789e861355c0c37f6dc6e0acc38 |
|
BLAKE2b-256 | ffc4eb857d6efe6e96a3cfd930a58a98225fca825b129a95c990be7df2c3a888 |