macOS
brew install uchardetlocal Homebrew formula metadata
sudo port install uchardetMacPorts ports tree · textproc/uchardet/Portfile · 来源: api.github.com
安装
brew install uchardetlocal Homebrew formula metadata
sudo port install uchardetMacPorts ports tree · textproc/uchardet/Portfile · 来源: api.github.com
sudo apk add uchardetAlpine Linux edge package indexes · uchardet · 来源: dl-cdn.alpinelinux.org
sudo apt install uchardetDebian stable package indexes · uchardet · 来源: deb.debian.org
sudo dnf install uchardetFedora Rawhide package metadata · uchardet · 来源: dl.fedoraproject.org
sudo pacman -S uchardetArch Linux sync databases · uchardet · 来源: geo.mirror.pkgbuild.com
sudo zypper install uchardetopenSUSE Tumbleweed package metadata · uchardet · 来源: download.opensuse.org
winget install --id PolarGoose.uchardet -eWindows Package Manager source index · PolarGoose.uchardet · 来源: cdn.winget.microsoft.com
概览
Encoding detector library
历史
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.
安全态势
library-like package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
uchardet | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://www.freedesktop.org/wiki/Software/uchardet/
安装元数据
| 软件包键 | brew:uchardet |
|---|---|
| 版本 | 0.0.8 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/uchardet |
| 主页 | https://www.freedesktop.org/wiki/Software/uchardet/ |
| 仓库 | https://gitlab.freedesktop.org/uchardet/uchardet |
| 上游文档 | https://www.freedesktop.org/wiki/Software/uchardet |
| 许可证 | MPL-1.1 OR GPL-2.0-or-later OR LGPL-2.1-or-later |
| 源码归档 | https://www.freedesktop.org/software/uchardet/releases/uchardet-0.0.8.tar.xz |
| 构建依赖 | cmake |
| Bottle | 可用 (于 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 | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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 libuchardet0来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.