macOS
brew install libchardetlocal Homebrew formula metadata
安装
brew install libchardetlocal Homebrew formula metadata
sudo dnf install libchardetFedora Rawhide package metadata · libchardet · 来源: dl.fedoraproject.org
nix profile install nixpkgs#libchardetnixpkgs package indexes · pkgs/by-name/li/libchardet/package.nix · 来源: api.github.com
sudo pacman -S libchardetArch Linux sync databases · libchardet · 来源: geo.mirror.pkgbuild.com
sudo apt install libchardet-devDebian stable package indexes · libchardet-dev · 来源: deb.debian.org
sudo zypper install libchardet-developenSUSE Tumbleweed package metadata · libchardet-devel · 来源: download.opensuse.org
概览
Mozilla's Universal Charset Detector C/C++ API
历史
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.
安全态势
library-like package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
chardet-config | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:libchardet |
|---|---|
| 版本 | 1.0.6 |
| 软件包管理器 | Homebrew |
| 主页 | https://github.com/Joungkyun/libchardet |
| 仓库 | https://github.com/Joungkyun/libchardet |
| Bottle | 未记录 |
| 服务 | 未声明 |
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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-24.fc45
Mozilla's universal character set detector
http://ftp.oops.org/pub/oops/libchardet/
sudo dnf install libchardetlibchardet-devel 1.0.5-24.fc45
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.6
Development files of libchardet
https://github.com/Joungkyun/libchardet
sudo zypper install libchardet-devellibchardet1 1.0.6-2.6
Mozilla Universal Chardet library
https://github.com/Joungkyun/libchardet
sudo zypper install libchardet1来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.