mbstrdecoder is a Python library for multi-byte character string decoder
Project Links
Meta
Author: Tsuyoshi Hombashi
Requires Python: >=3.9
Classifiers
Development Status
- 5 - Production/Stable
Intended Audience
- Developers
- Information Technology
License
- OSI Approved :: MIT License
Operating System
- OS Independent
Programming Language
- Python :: 3
- Python :: 3.9
- Python :: 3.10
- Python :: 3.11
- Python :: 3.12
- Python :: 3.13
- Python :: Implementation :: CPython
- Python :: Implementation :: PyPy
Topic
- Software Development :: Libraries
- Software Development :: Libraries :: Python Modules
- Text Processing
Summary
mbstrdecoder is a Python library for multi-byte character string decoder.
Installation
Install from PyPI
pip install mbstrdecoder
Install from PPA (for Ubuntu)
sudo add-apt-repository ppa:thombashi/ppa sudo apt update sudo apt install python3-mbstrdecoder
Usage
- Sample Code:
from mbstrdecoder import MultiByteStrDecoder encoded_multibyte_text = "マルチバイト文字".encode("utf-8") decoder = MultiByteStrDecoder(encoded_multibyte_text) print("encoded bytes: {}".format(encoded_multibyte_text)) print("unicode: {}".format(decoder.unicode_str)) print("codec: {}".format(decoder.codec))- Output:
encoded bytes: 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' unicode: マルチバイト文字 codec: utf_8
Dependencies
1.1.4
Jan 18, 2025
1.1.3
Jun 10, 2023
1.1.2
Feb 05, 2023
1.1.1
Aug 11, 2022
1.1.0
Sep 20, 2021
1.0.1
Dec 20, 2020
1.0.0
Apr 04, 2020
0.8.4
Jan 04, 2020
0.8.3
Jan 04, 2020
0.8.2
Jan 03, 2020
0.8.1
May 11, 2019
0.8.0
May 01, 2019
0.7.1
Apr 29, 2019
0.7.0
Feb 12, 2019
0.6.3
Feb 02, 2019
0.6.2
Jan 03, 2019
0.6.1
Dec 30, 2018
0.6.0
Dec 30, 2018
0.5.1
Dec 24, 2018
0.5.0
Sep 21, 2018
0.4.2
Aug 19, 2018
0.4.1
Aug 04, 2018
0.4.0
Apr 30, 2018
0.3.0
Apr 28, 2018
0.2.3
Dec 31, 2017
0.2.2
Feb 15, 2017
0.2.1
Jan 02, 2017
0.2.0
Dec 25, 2016
0.1.1
Dec 18, 2016
0.1.0
Dec 10, 2016