nkf
Network kanji filter: convert kanji code from one encoding to another. More information: https://manned.org/nkf.
- Convert to UTF-8 encoding:
nkf -w
- Convert to SHIFT_JIS encoding:
nkf -s
- Convert to UTF-8 encoding and overwrite the file:
nkf -w --overwrite
- Use LF as the new line code and overwrite (UNIX type):
nkf -d --overwrite
- Use CRLF as the new line code and overwrite (windows type):
nkf -c --overwrite
- Decrypt mime file and overwrite:
nkf -m --overwrite
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
