Skip to main content

multi-byte character string decoder

Project description

mbstrdecoder

https://badge.fury.io/py/mbstrdecoder.svg https://img.shields.io/pypi/pyversions/mbstrdecoder.svg https://img.shields.io/travis/thombashi/mbstrdecoder/master.svg?label=Linux https://img.shields.io/appveyor/ci/thombashi/mbstrdecoder/master.svg?label=Windows https://coveralls.io/repos/github/thombashi/mbstrdecoder/badge.svg?branch=master

Summary

Python library for multi-byte character string decoder.

Installation

pip install mbstrdecoder

Usage

Sample Code:
from __future__ import print_function
from mbstrdecoder import MultiByteStrDecoder

encoded_multibyte_text = u"マルチバイト文字".encode("utf-8")
decoder = MultiByteStrDecoder(encoded_multibyte_text)

print(encoded_multibyte_text)
print(decoder.unicode_str)
print(decoder.codec)
Output:
b'\xe3\x83\x9e\xe3\x83\xab\xe3\x83\x81\xe3\x83\x90\xe3\x82\xa4\xe3\x83\x88\xe6\x96\x87\xe5\xad\x97'
マルチバイト文字
utf_8

Dependencies

Python 2.7+ or 3.4+

Test dependencies

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

mbstrdecoder-0.4.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

mbstrdecoder-0.4.0-py2.py3-none-any.whl (5.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file mbstrdecoder-0.4.0.tar.gz.

File metadata

File hashes

Hashes for mbstrdecoder-0.4.0.tar.gz
Algorithm Hash digest
SHA256 0fc74a852a2c6de5d7234bc2e6c544a46dc60fc2921514ef4df397ab6fe35cad
MD5 03a3bcff158ba13b671404ef34b5a6ff
BLAKE2b-256 5a4cdfd1b870b8b88acc6876e94a3a969b1e74a3e5b7ae3d23b9b7022ebb7af4

See more details on using hashes here.

File details

Details for the file mbstrdecoder-0.4.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for mbstrdecoder-0.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 134f02887e94b8f9a58cca40e43141216b21dda6bd2cb3e27831e61c2418ea4d
MD5 49fd77531b1d72cd9c48b98946d8e615
BLAKE2b-256 e02f738bf6630f626d8f770979fe5f9efa802cb20d40ab26d98d6df7049cf3d7

See more details on using hashes here.

Supported by

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