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

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.12.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

character_encoding_utils-0.0.12-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file character_encoding_utils-0.0.12.tar.gz.

File metadata

  • Download URL: character_encoding_utils-0.0.12.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for character_encoding_utils-0.0.12.tar.gz
Algorithm Hash digest
SHA256 b0e5dda4eedcd84a5b35b24ad56218c7f5dbe54188316f1d6b0d79e15fcda54d
MD5 40f3b0be8b6c6d3238509c6195d74a07
BLAKE2b-256 8d3319993bbe81a0ddc2bc20a57a87169cb8dc1b7b45ced935472823c64a54b1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: character_encoding_utils-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for character_encoding_utils-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 a0e8d553d41245c70ce997653fa58f6ee2777c5cc061f2315b6149f4d46f66ac
MD5 408a42cee02ed094c9ce9404c3c5a8d1
BLAKE2b-256 75f512c5338bf48cc62e5a1ec4b4cf2693864d8865273aa306a9420cfae83fbd

See more details on using hashes here.

Supported by

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