mbstrdecoder
mbstrdecoder is a Python library for multi-byte character string decoder
Decision gist · record as of 2026-08-14
Yes. The package is lightweight, actively maintained, has no security issues, and solves a real problem—automatic multi-byte string decoding—with minimal dependencies. Install it if you need to reliably convert encoded bytes to Unicode without knowing the source encoding in advance.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low install friction with a single dependency (chardet).
- Actively maintained with recent commits and marked as Production/Stable.
License · maintenance · safety
MIT License (permissive) — MIT License permits commercial and private use with minimal restrictions—suitable for most projects without licensing concerns.
last release 2026-05-05 (101 days) · last repo commit 2026-07-27 · 6 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 7,436,273 downloads/mo, #1,739 on PyPI
Alternatives
Verify before relying
pip install mbstrdecoder
from mbstrdecoder import MultiByteStrDecoder
encoded = "マルチバイト文字".encode("utf-8")
decoder = MultiByteStrDecoder(encoded)
print(decoder.unicode_str) # マルチバイト文字
print(decoder.codec) # utf_8- Whether chardet's detection accuracy meets your use case (e.g., for ambiguous or mixed encodings).
- Performance characteristics when processing large volumes of encoded text.
What it is and what it does
mbstrdecoder is a lightweight Python library that takes multi-byte encoded byte strings and automatically detects their character encoding, then converts them to Unicode strings. It wraps chardet for codec detection and exposes the decoded result and detected codec through a simple object interface. The library is useful when you receive bytes from external sources and need to reliably convert them to text without knowing the encoding in advance.
The package is actively maintained, supports modern Python versions (3.10–3.14), and has no known security vulnerabilities. Its single runtime dependency keeps installation and maintenance overhead minimal. It is marked Production/Stable and sits in the top 5000 PyPI packages by download volume, indicating steady real-world use.
Use it for
- Automatically decode text files or network data when the source encoding is unknown or mixed.
- Handle user-uploaded files with varied character encodings in web applications.
- Process log files or data streams that may contain multi-byte characters in different encodings.
- Normalize encoded strings to Unicode before storing in databases or APIs.
- Detect and report the codec of incoming byte data for debugging or logging purposes.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is lightweight, actively maintained, has no security issues, and solves a real problem—automatic multi-byte string decoding—with minimal dependencies. Install it if you need to reliably convert encoded bytes to Unicode without knowing the source encoding in advance.
Install
mbstrdecoder on PyPI
Before you install
Low install friction with a single dependency (chardet). Actively maintained with recent commits and marked as Production/Stable. Supports modern Python versions from 3.10 onward.
Requires Python 3.10 or later.
License in practice
MIT License permits commercial and private use with minimal restrictions—suitable for most projects without licensing concerns.
Quickstart
pip install mbstrdecoder
from mbstrdecoder import MultiByteStrDecoder
encoded = "マルチバイト文字".encode("utf-8")
decoder = MultiByteStrDecoder(encoded)
print(decoder.unicode_str) # マルチバイト文字
print(decoder.codec) # utf_8
Verify before relying
- Whether chardet's detection accuracy meets your use case (e.g., for ambiguous or mixed encodings).
- Performance characteristics when processing large volumes of encoded text.
Package facts
| License | MIT License permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagechardet |
| Maintenance | Actively maintained 101 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 7,436,273 / month, #1,739 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: Information TechnologyLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python ModulesTopic :: Text Processing |
Evidence: mbstrdecoder-1.1.5-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “multi-byte character decoder”
- mbstrdecoderDecodes multi-byte character strings by detecting their encoding and…
- latexcodecProvides a Python codec to convert between LaTeX-encoded text and…
- mikeshardmind-base2048Encodes binary data into text using base2048, a binary-text encoding…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also latexcodec · morphys · reedsolo · rtfunicode · base2048 · encutils · mutf8 · py-multibase · binaryornot · msgfy