multi-byte character string decoder
Project description
mbstrdecoder
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
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.2.1.tar.gz
(5.3 kB
view details)
Built Distribution
File details
Details for the file mbstrdecoder-0.2.1.tar.gz
.
File metadata
- Download URL: mbstrdecoder-0.2.1.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec30107622f1ed28acff912317547bf495da58d4d47f17250dc8ef5e1990abdd |
|
MD5 | 708b62e035177d2cf5caf07c1b2a3016 |
|
BLAKE2b-256 | f4da8d380bda5207f9232aa98aa01aed6c6598cf753120df44c4fb2507468fc7 |
File details
Details for the file mbstrdecoder-0.2.1-py2.py3-none-any.whl
.
File metadata
- Download URL: mbstrdecoder-0.2.1-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 | 47a71887c12b5d85af82acec92df8073bf94aea9180f1a2a5294f7e4b68cec4d |
|
MD5 | 8f52a3de3b85323bdadc30afd79a1403 |
|
BLAKE2b-256 | 95ef9506928cc79419b11ba0d362858d3f5a5eb38d01b72d7b4cae21d8f22a20 |