multi-byte character string decoder
Project description
mbstrdecoder
Summary
Python library for multi-byte character string decoder.
Installation
pip install mbstrdecoder
or install all of the optional dependencies:
pip install mbstrdecoder[all]
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 bytes: {}".format(encoded_multibyte_text)) print("unicode: {}".format(decoder.unicode_str)) print("codec: {}".format(decoder.codec))
- Output:
encoded bytes: 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' unicode: マルチバイト文字 codec: utf_8
Dependencies
Python 2.7+ or 3.4+
Optional dependencies
Test dependencies
Project details
Release history Release notifications | RSS feed
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.6.2.tar.gz
(7.7 kB
view hashes)
Built Distribution
Close
Hashes for mbstrdecoder-0.6.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a35a17a90e742fea09d05484fb25e93ebb96fb428c79d9e736e80c775b05bd3 |
|
MD5 | f29e0275521c2fb5cd8087e22325d48e |
|
BLAKE2b-256 | 093d56f9a360346246ead06b6a97b6b31a01d97055cab9015a1edf32d9df9666 |