Skip to main content

viscii codec support

Project description

viscii-codec

viscii-codec is a Python package adding support for the viscii codecs. viscii is a legacy vietnamese language codec.

This package has been tested on python 3.8, 3.8, 3.10, 3.11, 3.12, 3.13, 3.14

Installation

The viscii-codec package is available on pypi and can be installed using any package manager.

pip install viscii-codec
uv add viscii-codec

Usage

To encode "Xin chào, thế giới!" (Hello World! according to translate) using viscii use:

# You must import the package to register the codec.
>>> import viscii
>>> "Xin chào, thế giới!".encode('viscii')
b'Xin ch\xe0o, th\xaa gi\xbei!'

To decode viscii bytes into unicode use:

>>> import viscii
>>> b'Xin ch\xe0o, th\xaa gi\xbei!'.decode('viscii')
'Xin chào, thế giới!'

Sources

The mapping was generated from RFC-1456 and cross referenced with the vietstd report of September 1992.

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

viscii_codec-1.0.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

viscii_codec-1.0.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file viscii_codec-1.0.0.tar.gz.

File metadata

  • Download URL: viscii_codec-1.0.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.2

File hashes

Hashes for viscii_codec-1.0.0.tar.gz
Algorithm Hash digest
SHA256 63bfb7aef65fd59cc6a970f30e0de0d6f1fbe723a881cb0288e8ff3963179add
MD5 4fed353255057d2de37bfd7bd21ee6b3
BLAKE2b-256 85899babf170654b5b663a85b73062a5ab53f274344175846722ee661fdb8947

See more details on using hashes here.

File details

Details for the file viscii_codec-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for viscii_codec-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 65601858c9d92383a6c58e74872e91afa8b4b494a87ced764b6adb44cd60ac92
MD5 61e3bc0928fc6890404e9954dfe7dd8b
BLAKE2b-256 7c931a92a8c76af9b88466cecad8f3efd45e4655f49bb7337d13e1f22e31b5dd

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