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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2d9669a10fae26465a07aee6cf048e20fadcb2db837ea121172bf36c58fd8fb |
|
MD5 | e639cfee3c0b3858b5625948634b5046 |
|
BLAKE2b-256 | 1ad188fec90cd580e1707eae1409e69ec50f243bdce0a80a29d28140a4a354b3 |
Close
Hashes for character_encoding_utils-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39853d4f585272fca7a6e091fbb9c8a80ae0dc7538f8898f0bf549b135c01ea5 |
|
MD5 | 4b2b2f956cd8db7f21c93a4c8dd59937 |
|
BLAKE2b-256 | 6f3d8faf81ceb6d6662732ec6ddd4373c640c1e1fc27c6785d360dd1261d6f5e |