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
File details
Details for the file character_encoding_utils-0.0.9.tar.gz
.
File metadata
- Download URL: character_encoding_utils-0.0.9.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
4319d735eae5eea9dca01c617c2dc6d1aafe629adf0699faa569d429a90d47e7
|
|
MD5 |
6e435ac86b81e7304f6dde14e3fc1f60
|
|
BLAKE2b-256 |
44e8b7a7d3f8a98b9428c218f9c97fcbc0cddbe9fdecd47f043b8e220de78be6
|
Provenance
The following attestation bundles were made for character_encoding_utils-0.0.9.tar.gz
:
Publisher:
publish.yml
on TakWolf/character-encoding-utils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
character_encoding_utils-0.0.9.tar.gz
-
Subject digest:
4319d735eae5eea9dca01c617c2dc6d1aafe629adf0699faa569d429a90d47e7
- Sigstore transparency entry: 164447585
- Sigstore integration time:
-
Permalink:
TakWolf/character-encoding-utils@7a892d7e08602b742135c66d93fae12a7c72fcad
-
Branch / Tag:
refs/tags/0.0.9
- Owner: https://github.com/TakWolf
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
publish.yml@7a892d7e08602b742135c66d93fae12a7c72fcad
-
Trigger Event:
release
-
Statement type:
File details
Details for the file character_encoding_utils-0.0.9-py3-none-any.whl
.
File metadata
- Download URL: character_encoding_utils-0.0.9-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
b043e5cccf9edb79143a2d29623ad9c37a860d342b580f7ce3ad65fa76834f60
|
|
MD5 |
8e186ebc62109b49c368da016ff7cc08
|
|
BLAKE2b-256 |
714ec6cc7c5f299e31abcbdcf4ff8df68d4cf639051c208c51edfea5d9cd5885
|
Provenance
The following attestation bundles were made for character_encoding_utils-0.0.9-py3-none-any.whl
:
Publisher:
publish.yml
on TakWolf/character-encoding-utils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
character_encoding_utils-0.0.9-py3-none-any.whl
-
Subject digest:
b043e5cccf9edb79143a2d29623ad9c37a860d342b580f7ce3ad65fa76834f60
- Sigstore transparency entry: 164447589
- Sigstore integration time:
-
Permalink:
TakWolf/character-encoding-utils@7a892d7e08602b742135c66d93fae12a7c72fcad
-
Branch / Tag:
refs/tags/0.0.9
- Owner: https://github.com/TakWolf
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
publish.yml@7a892d7e08602b742135c66d93fae12a7c72fcad
-
Trigger Event:
release
-
Statement type: