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 details)
Built Distribution
File details
Details for the file mbstrdecoder-0.4.0.tar.gz
.
File metadata
- Download URL: mbstrdecoder-0.4.0.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fc74a852a2c6de5d7234bc2e6c544a46dc60fc2921514ef4df397ab6fe35cad |
|
MD5 | 03a3bcff158ba13b671404ef34b5a6ff |
|
BLAKE2b-256 | 5a4cdfd1b870b8b88acc6876e94a3a969b1e74a3e5b7ae3d23b9b7022ebb7af4 |
File details
Details for the file mbstrdecoder-0.4.0-py2.py3-none-any.whl
.
File metadata
- Download URL: mbstrdecoder-0.4.0-py2.py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 134f02887e94b8f9a58cca40e43141216b21dda6bd2cb3e27831e61c2418ea4d |
|
MD5 | 49fd77531b1d72cd9c48b98946d8e615 |
|
BLAKE2b-256 | e02f738bf6630f626d8f770979fe5f9efa802cb20d40ab26d98d6df7049cf3d7 |