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 = "マルチバイト文字".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.5.0.tar.gz
(7.3 kB
view details)
Built Distribution
File details
Details for the file mbstrdecoder-0.5.0.tar.gz
.
File metadata
- Download URL: mbstrdecoder-0.5.0.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2035565977693f26e4346095556b4a0a5160829e61da62b3a0b40ed8f77c3121 |
|
MD5 | a7d7088ef451a734ee0c5615bc3ac30f |
|
BLAKE2b-256 | 16feb27a3cd12b7f277e9f4d11d6743460019315cfcc9b775ef9f5533d94263a |
File details
Details for the file mbstrdecoder-0.5.0-py2.py3-none-any.whl
.
File metadata
- Download URL: mbstrdecoder-0.5.0-py2.py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85a043b115a2db3842ef93f05e330a58dfac88b6aa402ebe4a307a26d7238f2c |
|
MD5 | a62ba6234ad73c640c8565830a9624f4 |
|
BLAKE2b-256 | c354c807c542ddda2f3a804c57250c1d7830cf87d39b5eccb46bff0fdfa72811 |