uchardet
« Back to VersTracker
Description:
Encoding detector library
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: encoding detection library unicode text-processing
Install: brew install uchardet
About:
uchardet is a C library and command-line tool for detecting the encoding of text files. It is a C++ port of the universal charset detection algorithms originally developed by Mozilla for Firefox. This tool reliably identifies character encodings such as UTF-8, ISO-8859 series, and various Windows code pages.
Key Features:
  • Mozilla's universal charset detection algorithms
  • Support for a wide range of international encodings
  • Lightweight C++ library with a simple command-line interface
Use Cases:
  • Automating the import of legacy text files with unknown encodings
  • Building applications that need to handle user-provided text data
Alternatives:
  • chardet – uchardet is a C++ port optimized for performance, whereas the original chardet is Python-based.
  • file – The standard 'file' command provides basic encoding hints but uchardet offers more specialized detection.
Version History
Detected Version Rev Change Commit