macOS
brew install nkflocal Homebrew formula metadata
sudo port install nkfMacPorts ports tree · textproc/nkf/Portfile · 来源: api.github.com
安装
brew install nkflocal Homebrew formula metadata
sudo port install nkfMacPorts ports tree · textproc/nkf/Portfile · 来源: api.github.com
sudo dnf install nkfFedora Rawhide package metadata · nkf · 来源: dl.fedoraproject.org
nix profile install nixpkgs#nkfnixpkgs package indexes · pkgs/by-name/nk/nkf/package.nix · 来源: api.github.com
sudo zypper install nkfopenSUSE Tumbleweed package metadata · nkf · 来源: download.opensuse.org
概览
Network Kanji code conversion Filter (NKF)
历史
nkf, the Network Kanji Filter, is a long-lived Japanese text encoding conversion utility. It converts among encodings such as ISO-2022-JP, Shift_JIS, EUC-JP, UTF-8, UTF-16, and UTF-32, with automatic input-encoding guessing as one of its defining conveniences.
The upstream README credits the original 1987 Fujitsu work by Itaru Ichikawa and the nkf Project's later maintenance from 1996 through 2012. The project's change log shows a major 2.0-era transition in September 2002, including UTF-8/UTF-16 work and migration into SourceForge CVS, which matches nkf's role as Japanese Unix text processing moved from legacy encodings toward Unicode.
nkf has survived because the Japanese encoding problem never fully disappeared: archives, mail, old web content, Windows-31J/CP932 data, and legacy build/test fixtures still need reliable conversion. Homebrew's API reported 144 installs in 30 days, 560 in 90 days, and 4,692 in 365 days when checked on July 1, 2026, and the package is also present across Debian/Ubuntu, Fedora, openSUSE, Nix, MacPorts, and other package systems.
Typical command-line use is plumbing: guess an unknown Japanese file's encoding, convert Shift_JIS or EUC-JP to UTF-8, normalize line endings, MIME-decode Japanese mail headers, or do in-place conversion with `--overwrite`. Developers also encounter nkf indirectly through language bindings, notably Ruby's NKF extension.
安全态势
broad file, network, media, or database tool signal.
blue 风险 · 中 置信度 · tool
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
nkf | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:nkf |
|---|---|
| 版本 | 2.1.5 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/nkf |
| 主页 | https://github.com/nurse/nkf |
| 仓库 | https://github.com/nurse/nkf |
| 上游文档 | https://github.com/nurse/nkf#readme |
| 许可证 | Zlib |
| 源码归档 | https://deb.debian.org/debian/pool/main/n/nkf/nkf_2.1.5.orig.tar.gz |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | nkf |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
libnkf-perl 1:2.1.5-1+b8
Network Kanji code conversion Filter for Perl
https://osdn.net/projects/nkf/
sudo apt install libnkf-perlnkf 1:2.1.5-1+b8
Network Kanji code conversion Filter
https://osdn.net/projects/nkf/
sudo apt install nkfnkf
nix profile install nixpkgs#nkflibnkf-perl 1:2.1.5-1build7
Network Kanji code conversion Filter for Perl
https://osdn.net/projects/nkf/
sudo apt install libnkf-perlnkf 1:2.1.5-1build7
Network Kanji code conversion Filter
https://osdn.net/projects/nkf/
sudo apt install nkfnkf 2.1.4-38.fc44
A Kanji code conversion filter
sudo dnf install nkfperl-NKF 2.1.4-38.fc44
Perl extension for Network Kanji Filter
sudo dnf install perl-NKFnkf 2.1.5-1.34
Network Kanji Code Conversion Filter
http://sourceforge.jp/projects/nkf/
sudo zypper install nkfperl-NKF 2.1.5-1.34
Perl extension for nkf (Network Kanji Filter)
http://sourceforge.jp/projects/nkf/
sudo zypper install perl-NKFnkf
sudo port install nkf来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.