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.4.0.tar.gz
(7.1 kB
view hashes)
Built Distribution
Close
Hashes for mbstrdecoder-0.4.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 134f02887e94b8f9a58cca40e43141216b21dda6bd2cb3e27831e61c2418ea4d |
|
MD5 | 49fd77531b1d72cd9c48b98946d8e615 |
|
BLAKE2b-256 | e02f738bf6630f626d8f770979fe5f9efa802cb20d40ab26d98d6df7049cf3d7 |