Registry / data / encutils

encutils

JSON →
library1.0.0pypypi✓ verified 81d ago

encutils is a Python utility library for encoding detection and conversion, providing simple functions to handle text encoding issues. Current version 1.0.0, released with Python >=3.10 support. Low release cadence.

pip install encutils
INSTALL
IMPORT
SIG · ENCUTILS
E
encutils
datapythonv1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

detectXMLEncoding
from encutils import detectXMLEncoding
from encutils import detect_encoding
encodingByMediaType
from encutils import encodingByMediaType
getEncodingInfo
from encutils import getEncodingInfo

Detect encoding of a byte string and convert to UTF-8.

from encutils import detect_encoding, convert_encoding text = b'Hello World' encoding = detect_encoding(text) print('Detected encoding:', encoding) converted = convert_encoding(text, 'utf-8') print('Converted text:', converted.decode('utf-8'))
Debug
Known issues
gotchaInput must be bytes, not str. Passing str will raise TypeError.
fix
Ensure input is bytes (e.g., my_str.encode('utf-8')) or bytes object.
affects: all
deprecatedThe function guess_encoding is deprecated in favor of detect_encoding which provides more accurate detection.
fix
Replace guess_encoding() with detect_encoding() for new code.
affects: >=1.0.0
Upgrade
Version history
1.0.0latest on PyPI · released Apr 19, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
14
Resources
encutils — pip install encutils · libregistry