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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c954b5ae391fae17b1ec47aba30bd22749174ee3cef9bdeee571d95d2cb00ba |
|
MD5 | d35bfaebcda8101e5451dd012e161cba |
|
BLAKE2b-256 | 9745fcda431a2c543f15138b5d8289bf64838c380fc35b4c1bac5f7dc3a7f772 |
Close
Hashes for character_encoding_utils-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 490ac78e59159bc5bbd3ab2359afd4f3b416d54958d09369e452df3f3eab752d |
|
MD5 | b3525356c755604cfbd39b3e1febd09b |
|
BLAKE2b-256 | df144e1019ed72842cb99ad82f3b4b5e688754fd4e2c6163e7143ff495ee643e |