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/macOS 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 = "マルチバイト文字".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.1.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

mbstrdecoder-0.4.1-py2.py3-none-any.whl (5.4 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: mbstrdecoder-0.4.1.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5

File hashes

Hashes for mbstrdecoder-0.4.1.tar.gz
Algorithm Hash digest
SHA256 470eede331fdc08ba9ddf1f5cfbda181982d7b0404edec5ae17cf011e72a16ab
MD5 70d49ff71ed69ae618cdac25bd23e954
BLAKE2b-256 860cb429af6aef43458d6f688f6ddf2be6a148754414c898be01bee3b5247cec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mbstrdecoder-0.4.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5

File hashes

Hashes for mbstrdecoder-0.4.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1a7d1fd19718373485860b3dfb0a23b818d9d22337d6de5684e12fd5212e1003
MD5 3111f147d720bcc006f97ecff13fda7e
BLAKE2b-256 fcf922f9de8857dd6c6ae6f737baf7360ffcee42bea70623010d7d9a397183e1

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