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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98a840e9a762f7bb946af046d9d4cf7578952f81d54f833cc94ff3badc974ed0 |
|
MD5 | c807769b03f3cb0088a5cd2e83fc6bc3 |
|
BLAKE2b-256 | 68be73fb71d18d3601dd6689df8134664f44b393b550bf6cc6b081aabc125ea8 |
Close
Hashes for character_encoding_utils-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92b98c1d1aeb8e56d9e25fb2bb9264b930e7ef3a416b2fed6a0fc9ad2233197e |
|
MD5 | 63ba15fcc8f67f2c54e0eb4af9e2166d |
|
BLAKE2b-256 | 158d4e5db247dc9d937a7cfa1b2a6ba24c6eb4e438eb9ab6fcecff491e541395 |