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.4.2.tar.gz
(7.1 kB
view details)
Built Distribution
File details
Details for the file mbstrdecoder-0.4.2.tar.gz
.
File metadata
- Download URL: mbstrdecoder-0.4.2.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5370fdac8a6a600d098fc3438004a0624c4c168d92a3801733c7e4aecef21da |
|
MD5 | 76a335b422e1adab2cbe1ccf905b4582 |
|
BLAKE2b-256 | 4e2106b71fa219b87d105b84f28309154c2892576ce05240528f004ef0746672 |
File details
Details for the file mbstrdecoder-0.4.2-py2.py3-none-any.whl
.
File metadata
- Download URL: mbstrdecoder-0.4.2-py2.py3-none-any.whl
- Upload date:
- Size: 5.4 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.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3985ea99a808fef7f64724331d8e6d7584835f1b017228ae5e429a543b016181 |
|
MD5 | 645f8b54a0d6dff47c07ec7689077fb5 |
|
BLAKE2b-256 | d066639d70b7b4fc8bc0dff4b2c2df0eb94e136ea4212692664289f093a9db1d |