Linux command
manconv 命令
文本
涉及管道、覆盖或删除,执行前请先确认路径和参数。
常用示例
Convert encoding from
manconv -f [ISO-8859-1] -t [UTF-8] < [input] > [output]
Try multiple input
manconv -f [ISO-8859-1:UTF-8] -t [UTF-8] [input.man]
Convert man page
manconv -q -f [latin1] -t [utf-8] [oldpage.1] > [newpage.1]
说明
manconv converts a manual page from one encoding to another, similar to iconv. Unlike iconv, it can try multiple possible input encodings in sequence. This is useful for manual pages installed in directories without an explicit encoding declaration, since they may be in UTF-8 or in a legacy character set. If an encoding declaration is found on the first line of the manual page, that declaration overrides any input encodings specified on the command line. The tool is part of man-db.
参数
- -f _ENCODINGS_, --from-code _ENCODINGS_
- Source encodings (colon-separated list to try in sequence).
- -t _ENCODING_, --to-code _ENCODING_
- Target encoding.
- -q, --quiet
- Suppress error messages when the page cannot be converted.
- -d, --debug
- Print debugging information.
- -V, --version
- Display version information.
- -h, --help
- Display help information.
FAQ
What is the manconv command used for?
manconv converts a manual page from one encoding to another, similar to iconv. Unlike iconv, it can try multiple possible input encodings in sequence. This is useful for manual pages installed in directories without an explicit encoding declaration, since they may be in UTF-8 or in a legacy character set. If an encoding declaration is found on the first line of the manual page, that declaration overrides any input encodings specified on the command line. The tool is part of man-db.
How do I run a basic manconv example?
Run `manconv -f [ISO-8859-1] -t [UTF-8] < [input] > [output]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -f _ENCODINGS_, --from-code _ENCODINGS_ do in manconv?
Source encodings (colon-separated list to try in sequence).