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

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)
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.3+

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

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for mbstrdecoder-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f8f44ac733924e923444ea36e95dad85675a53b9e11370ec975ba563beed544e
MD5 95d7125e73de4ff21111276aeff6a812
BLAKE2b-256 baa3c08324ba211d1fd2192f280f07c4223c7ab83fa511a70970ef72a7f0f61e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mbstrdecoder-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5c763492f617774897b732ece2520c50477c42518420b60aa104a194520fec03
MD5 daa9d423a1eacb666dfb273bfe1b6a39
BLAKE2b-256 f7c08fd6da4339fb440cc57cc4881398d5f834179f932b72a17d62f7735374c1

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