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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba0cd6892a5aff1c65ada57254f4d2abfbb13e0d7590ec9e3e06f5726cd7dee8 |
|
MD5 | 25556a7d6d2fa1f9586aa4b6665ff532 |
|
BLAKE2b-256 | beb7cdae814f146fca59119154644cead6724bca832f71870ea1a227f32e749a |
Close
Hashes for character_encoding_utils-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c531a0ebfdd1d2365b2e547786451a2f1a27c25a27a8f7ac20b655d6979110f4 |
|
MD5 | a504d65d129be9fb4363785cfe01cdcc |
|
BLAKE2b-256 | e729b2dec6799f223d5588ebc805d677327fd8be65d46d2d8d91ded9eea3b087 |