macOS
brew install libchardetlocal Homebrew formula metadata
brew
Mozilla's Universal Charset Detector C/C++ API. Version 1.0.6 via Homebrew; verified 2026-06-22.
install
brew install libchardetlocal Homebrew formula metadata
sudo apt install libchardet-devDebian stable package indexes · libchardet-dev · source: deb.debian.org
sudo dnf install libchardetFedora Rawhide package metadata · libchardet · source: dl.fedoraproject.org
nix profile install nixpkgs#libchardetnixpkgs package indexes · pkgs/by-name/li/libchardet/package.nix · source: api.github.com
sudo pacman -S libchardetArch Linux sync databases · libchardet · source: geo.mirror.pkgbuild.com
sudo zypper install libchardet-developenSUSE Tumbleweed package metadata · libchardet-devel · source: download.opensuse.org
overview
Mozilla's Universal Charset Detector C/C++ API
history
libchardet is a C/C++ API around Mozilla's Universal Charset Detector lineage. It detects the likely character encoding of byte streams, a task that matters when programs ingest legacy text without reliable charset labels.
Mozilla's archived charset detector documentation describes the original detector as an XPCOM component that receives bytes and guesses the charset. A companion Mozilla document from 2002 explains that the universal detector implementation was separable from the XPCOM wrapper and could be used by other projects.
The libchardet README says the library is based on Mozilla Universal Charset Detector code originally written by Netscape Communications Corporation, with a C wrapping API and libtool build environment. It also records later changes: version 1.0.5 incorporated single-byte charset confidence ideas and language models from uchardet, and version 1.0.6 added BOM reporting.
libchardet's adoption is narrower than Python chardet or uchardet, but it fills the same packaging niche for C/C++ consumers that need Mozilla-style charset guessing without embedding the whole browser-era component. The batch input lists packages in Homebrew, Debian/Ubuntu, Fedora, Arch, Nix, and openSUSE, mostly as a development library.
The repository documents a small API centered on detect_obj_init, detect or detect_r, confidence reporting, and object cleanup. The package also installs chardet-config for build integration, so downstream C/C++ projects can compile against the library.
libchardet is significant because charset detection is one of those small compatibility problems that keeps returning in editors, importers, scrapers, mail tools, and document converters. It also shows how browser infrastructure escaped into standalone libraries: Mozilla/Netscape detection code became reusable C, Python, Perl, and other language bindings.
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 |
|---|---|---|---|
chardet-config | 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://github.com/Joungkyun/libchardet
install metadata
| Package key | brew:libchardet |
|---|---|
| Version | 1.0.6 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/libchardet |
| Homepage | https://github.com/Joungkyun/libchardet |
| Repository | https://github.com/Joungkyun/libchardet |
| Upstream docs | https://github.com/Joungkyun/libchardet#readme |
| License | MPL-1.1 OR LGPL-2.1-only |
| Source archive | https://github.com/Joungkyun/libchardet/archive/refs/tags/1.0.6.tar.gz |
| Last updated | 2026-06-22T14:05:15-07:00 |
| Pulse | updated |
| Build dependencies | autoconf, automake, libtool |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | libchardet |
| Version Scheme | 0 |
| Revision | 0 |
| 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.
libchardet-dev 1.0.6-1
universal charset detection library - development files
https://github.com/Joungkyun/libchardet
sudo apt install libchardet-devlibchardet1t64 1.0.6-1
universal charset detection library - shared library
https://github.com/Joungkyun/libchardet
sudo apt install libchardet1t64libchardet
nix profile install nixpkgs#libchardetlibchardet-dev 1.0.4-1.1build1
universal charset detection library - development files
https://ftp.oops.org/pub/oops/libchardet/
sudo apt install libchardet-devlibchardet1t64 1.0.4-1.1build1
universal charset detection library - shared library
https://ftp.oops.org/pub/oops/libchardet/
sudo apt install libchardet1t64libchardet 1.0.5-23.fc44
Mozilla's universal character set detector
http://ftp.oops.org/pub/oops/libchardet/
sudo dnf install libchardetlibchardet-devel 1.0.5-23.fc44
Header and object files for development using libchardet
http://ftp.oops.org/pub/oops/libchardet/
sudo dnf install libchardet-devellibchardet 1.0.6-4
Mozilla's Universal Charset Detector C/C++ API
http://ftp.oops.org/pub/oops/libchardet
sudo pacman -S libchardetlibchardet-devel 1.0.6-2.4
Development files of libchardet
https://github.com/Joungkyun/libchardet
sudo zypper install libchardet-devellibchardet1 1.0.6-2.4
Mozilla Universal Chardet library
https://github.com/Joungkyun/libchardet
sudo zypper install libchardet1source 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.