macOS
brew install uni2asciiprovider-native install command
安装
brew install uni2asciiprovider-native install command
概览
Bi-directional conversion between UTF-8 and various ASCII flavors
历史
uni2ascii is a pair of Unix-style conversion programs, `uni2ascii` and `ascii2uni`, for translating between UTF-8 Unicode and many 7-bit ASCII representations. The official page lists more than thirty supported representations, including HTML, SGML, XML, OOXML, Unicode-standard U+ notation, URI escapes, quoted-printable, POSIX charmap formats, programming-language escapes, and related formats.
The project originated as a Unicode escape conversion utility and, by version 2.0, replaced the original Python implementation with a C program. The author's changelog says that rewrite added more output forms, improved speed and error reporting, and handled the entire Unicode range rather than only the BMP.
Version 2.1 added `ascii2uni`, the inverse program that converts ASCII escape forms back to UTF-8 Unicode. Later releases expanded the set of recognized notations and moved from many separate format flags to the single `-a` format selector in version 4.0.
The official homepage lists version 4.20 as current and last modified on 2019-06-28, while the published changelog on the page highlights 2010-2011 maintenance around Debian and NetBSD bug fixes, POSIX portability, and conversion semantics.
The official homepage explicitly lists package links for Arch Linux, Debian stable/testing/unstable, FreeBSD, MacPorts, Fink, OpenPackage, Red Hat/Fedora RPMs, SUSE, and Ubuntu. The supplied package facts show continuing package-manager presence in Homebrew, Debian, Ubuntu, MacPorts, and Nix.
This is a classic small Unix utility adoption story: the upstream site provides tarballs and manpages, while operating-system distributions make the commands available for scripts, build systems, documentation tooling, and text-cleanup workflows.
`uni2ascii` reads UTF-8 text and writes an ASCII representation such as HTML numeric references, URI escapes, quoted-printable, U+ notation, programming-language escapes, or approximate ASCII replacements. The official page gives pipeline examples where `ascii2uni` and `uni2ascii` are chained to convert one escape syntax to another through Unicode.
The manpage documents stdin/stdout behavior and many format choices, so the tool fits shell pipelines. The homepage also calls out practical use cases: embedding Unicode in program source, debugging, and entering Unicode into systems that can process Unicode but are not 8-bit clean.
uni2ascii matters to package and shell users because it solves a narrow but persistent portability problem: moving Unicode text through tools, source files, logs, markup, and legacy systems that expect ASCII-safe representations.
Its niche is older and lower-level than modern Unicode pickers. Where `uni` helps identify and search characters, uni2ascii is about conversion formats and reversible or approximate transformations, which makes it valuable in scripts and regression tests.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
ascii2uni | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
u2a | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
uni2ascii | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:uni2ascii |
|---|---|
| 版本 | 4.20 |
| 软件包管理器 | Homebrew |
| 主页 | https://billposer.org/Software/uni2ascii.html |
| 最后更新 | 2026-07-10T10:41:25-04:00 |
| Pulse | updated |
| Bottle | 未记录 |
| 服务 | 未声明 |
来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.