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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 670ff5500289b6067527c5f83030ce6ac081829ff52baaba066db002a67a5708 |
|
MD5 | bd32177e75c69baa3201c2d85c8b6cc8 |
|
BLAKE2b-256 | 2d6c0246bc279efa140a72d4b15d975bf3eca9a71c5eae292fee6e027d075a0c |
Close
Hashes for character_encoding_utils-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a604588f99cf0ca9c7f6427e752bca60f64c260a22ac4488a7bb89aa15090d33 |
|
MD5 | 266b95898683fe6477dd1dc23af42e9a |
|
BLAKE2b-256 | 053419fe1e06190aaba1a277e6c94141f53971d871c99e4648c7b54b4e4684d7 |