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
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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 714820c8dcf9c6984317eedd4abc77bebdefdd1f084abc878fd69c70c25f0db8 |
|
MD5 | 0be3f4d20450142eaa6007c4c6d1a667 |
|
BLAKE2b-256 | e1a606ac74f8c0e16ee0473c567d7c74726b9dc99d6fde40cb47856b77f2992d |
Close
Hashes for character_encoding_utils-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f27cb950f51f566ee2aa20f3769e952aed264b01b47f62faca0b02a4436c38a1 |
|
MD5 | 0ae8315da8215d5fc1aca536749f64aa |
|
BLAKE2b-256 | 99d9e936cac3b3d71fff71b935a3c9a4b2ecd3a9fd8ac7c908a13bfdf9de9094 |