macOS
brew install uchardetlocal Homebrew formula metadata
sudo port install uchardetMacPorts ports tree · textproc/uchardet/Portfile · source: api.github.com
brew
Encoding detector library. Version 0.0.8 via Homebrew; verified from local package data.
install
brew install uchardetlocal Homebrew formula metadata
sudo port install uchardetMacPorts ports tree · textproc/uchardet/Portfile · source: api.github.com
sudo apk add uchardetAlpine Linux edge package indexes · uchardet · source: dl-cdn.alpinelinux.org
sudo apt install libuchardet-devDebian stable package indexes · libuchardet-dev · source: deb.debian.org
sudo dnf install uchardetFedora Rawhide package metadata · uchardet · source: dl.fedoraproject.org
sudo pacman -S uchardetArch Linux sync databases · uchardet · source: geo.mirror.pkgbuild.com
sudo zypper install libuchardet-developenSUSE Tumbleweed package metadata · libuchardet-devel · source: download.opensuse.org
winget install --id PolarGoose.uchardet -eWindows Package Manager source index · PolarGoose.uchardet · source: cdn.winget.microsoft.com
overview
Encoding detector library
history
uchardet is a character encoding detector library and CLI derived from Mozilla's universal charset detector work. It takes unknown bytes and attempts to identify the text encoding, returning iconv-compatible names, which makes it useful in editors, import pipelines, file tools, and packaging workflows that handle legacy text.
The freedesktop.org project page says uchardet started as a C language binding of Mozilla's original C++ universal charset detection library. The current README broadens that description to an encoding and language detector that now detects more charsets and more reliably than the original implementation while remaining reasonably fast.
The project moved from BYVoid's earlier GitHub repository to freedesktop hosting. The old repository now tells users that uchardet is a freedesktop project and points to the freedesktop page, bug tracker, releases, and code location.
freedesktop.org lists uchardet 0.0.8 as the last release on 2022-12-08, with earlier release tarballs for 0.0.6 in 2016 and 0.0.7 in 2020. The current project page links GitLab issues for bugs and patches and the GitLab repository for development code.
uchardet is adopted wherever package users need an embeddable encoding detector rather than a full application. The batch input shows packages for Homebrew, Alpine, Debian, Ubuntu, Fedora, Arch, MacPorts, winget, and openSUSE-style systems, often split as library/development packages on Linux.
Its niche persists because encoding detection remains a practical problem for command-line text processing and data import. A small C/C++ library with iconv-compatible output is easy for downstream language bindings, desktop tools, and scripts to depend on.
As a library, uchardet is used by passing bytes with no extra encoding information and receiving a likely encoding name, plus language detection in the current README. As a package, the uchardet executable gives shell users a direct way to inspect files before conversion or ingestion.
The supported-encodings list on freedesktop.org covers Unicode encodings plus many regional legacy encodings for Arabic, Chinese, Japanese, Korean, Cyrillic, Central European, Western European, Thai, Turkish, Vietnamese, and other text families.
uchardet is package-nerd significant because it is infrastructure: it rarely sits at the center of a user's workflow, but it helps many tools make better guesses about old or mislabeled text.
Its history also shows a common open-source maintenance path: a useful standalone project migrates from a personal GitHub repository to freedesktop infrastructure, gains release tarballs and issue tracking there, and remains widely packaged as both a command and a development library.
security posture
library-like package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
uchardet | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://www.freedesktop.org/wiki/Software/uchardet/
install metadata
| Package key | brew:uchardet |
|---|---|
| Version | 0.0.8 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/uchardet |
| Homepage | https://www.freedesktop.org/wiki/Software/uchardet/ |
| Repository | https://gitlab.freedesktop.org/uchardet/uchardet |
| Upstream docs | https://www.freedesktop.org/wiki/Software/uchardet |
| License | MPL-1.1 OR GPL-2.0-or-later OR LGPL-2.1-or-later |
| Source archive | https://www.freedesktop.org/software/uchardet/releases/uchardet-0.0.8.tar.xz |
| Build dependencies | cmake |
| Bottle | available (on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | uchardet |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
libuchardet-dev 0.0.8-1+b2
universal charset detection library - development files
https://www.freedesktop.org/wiki/Software/uchardet/
sudo apt install libuchardet-devlibuchardet0 0.0.8-1+b2
universal charset detection library - shared library
https://www.freedesktop.org/wiki/Software/uchardet/
sudo apt install libuchardet0uchardet 0.0.8-1+b2
universal charset detection library - cli utility
https://www.freedesktop.org/wiki/Software/uchardet/
sudo apt install uchardetlibuchardet-dev 0.0.8-1build1
universal charset detection library - development files
https://www.freedesktop.org/wiki/Software/uchardet/
sudo apt install libuchardet-devlibuchardet0 0.0.8-1build1
universal charset detection library - shared library
https://www.freedesktop.org/wiki/Software/uchardet/
sudo apt install libuchardet0uchardet 0.0.8-1build1
universal charset detection library - cli utility
https://www.freedesktop.org/wiki/Software/uchardet/
sudo apt install uchardetuchardet 0.0.8-r2
Encoding detector library ported from Mozilla
https://www.freedesktop.org/wiki/Software/uchardet
sudo apk add uchardetuchardet-dev 0.0.8-r2
Encoding detector library ported from Mozilla (development files)
https://www.freedesktop.org/wiki/Software/uchardet
sudo apk add uchardet-devuchardet-doc 0.0.8-r2
Encoding detector library ported from Mozilla (documentation)
https://www.freedesktop.org/wiki/Software/uchardet
sudo apk add uchardet-docuchardet-libs 0.0.8-r2
Encoding detector library ported from Mozilla (libraries)
https://www.freedesktop.org/wiki/Software/uchardet
sudo apk add uchardet-libsuchardet-static 0.0.8-r2
Encoding detector library ported from Mozilla (static library)
https://www.freedesktop.org/wiki/Software/uchardet
sudo apk add uchardet-staticuchardet 0.0.8-10.fc44
An encoding detector library ported from Mozilla
https://www.freedesktop.org/wiki/Software/uchardet
sudo dnf install uchardetuchardet-devel 0.0.8-10.fc44
Development files for uchardet
https://www.freedesktop.org/wiki/Software/uchardet
sudo dnf install uchardet-develuchardet 0.0.8-4
Encoding detector library ported from Mozilla
https://www.freedesktop.org/wiki/Software/uchardet
sudo pacman -S uchardetlibuchardet-devel 0.0.8-2.3
Universal Charset Detection Library
https://www.freedesktop.org/wiki/Software/uchardet/
sudo zypper install libuchardet-devellibuchardet0 0.0.8-2.3
Universal Charset Detection Library
https://www.freedesktop.org/wiki/Software/uchardet/
sudo zypper install libuchardet0source trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.