Skip to main content

Some character encoding utils.

Project description

Character Encoding Utils

Python PyPI

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

character_encoding_utils-0.0.9.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

character_encoding_utils-0.0.9-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

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

Hashes for character_encoding_utils-0.0.9.tar.gz
Algorithm Hash digest
SHA256 4319d735eae5eea9dca01c617c2dc6d1aafe629adf0699faa569d429a90d47e7
MD5 6e435ac86b81e7304f6dde14e3fc1f60
BLAKE2b-256 44e8b7a7d3f8a98b9428c218f9c97fcbc0cddbe9fdecd47f043b8e220de78be6

See more details on using hashes here.

Provenance

The following attestation bundles were made for character_encoding_utils-0.0.9.tar.gz:

Publisher: publish.yml on TakWolf/character-encoding-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file character_encoding_utils-0.0.9-py3-none-any.whl.

File metadata

File hashes

Hashes for character_encoding_utils-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 b043e5cccf9edb79143a2d29623ad9c37a860d342b580f7ce3ad65fa76834f60
MD5 8e186ebc62109b49c368da016ff7cc08
BLAKE2b-256 714ec6cc7c5f299e31abcbdcf4ff8df68d4cf639051c208c51edfea5d9cd5885

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page