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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5175f82ffc7b7cfdfb64414308f734291372c78ef1bf0634273fa57f1cd4ba58 |
|
MD5 | fedd544c4f935d2b70a64119f9898a12 |
|
BLAKE2b-256 | 366700c774ffe5d25dfba2140f1b601260f86af0879108e1129197a4ccdd1481 |
Close
Hashes for character_encoding_utils-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 528a29ce45bc394d052e5678401c67ae4441273686a51eae536be7a7989dee9c |
|
MD5 | 596989180476d9e4c78d9f75ad53f801 |
|
BLAKE2b-256 | c0071766d9279525e1db9a30e7f86189ed091a813804e008f51bb92079cfd36b |