multi-byte character string decoder
Project description
mbstrdecoder
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
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.3.0.tar.gz
(6.3 kB
view hashes)
Built Distribution
Close
Hashes for mbstrdecoder-0.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6c2487b196ae8d20b1298396d8a15c4cd2aaa040aa1e36c143f8a4767db8b57 |
|
MD5 | 0156bc2b478b05dcf36b20dd8fe8a753 |
|
BLAKE2b-256 | cd65913f1caeca12f342bb96498fed44d4cbf084621cd0c0378af645a1271052 |