{
    "mode": "man",
    "parameter": "man-recode",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/man-recode/1/json",
    "generated": "2026-09-02T21:45:25Z",
    "synopsis": "man-recode -t to-code {--suffix=suffix|--in-place} [-dqhV] [filename]",
    "sections": {
        "NAME": {
            "content": "man-recode - convert manual pages to another encoding\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "man-recode -t to-code {--suffix=suffix|--in-place} [-dqhV] [filename]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "man-recode  converts  multiple manual pages from one encoding to another, guessing the appro‐\npriate input encoding for each one.  It is useful when permanently recoding pages written  in\nlegacy  character  sets,  or  in build systems that need to recode a set of pages to a single\ncommon encoding (usually UTF-8) for installation.  When converting many  manual  pages,  this\nprogram is much faster than running man --recode or manconv on each page.\n\nIf an encoding declaration is found on the first line of a manual page, then that declaration\nis  used  as  the  input encoding for that page.  Failing that, the input encoding is guessed\nbased on the file name.\n\nEncoding declarations have the following form:\n\n'\\\" -*- coding: UTF-8 -*-\n\nor (if manual page preprocessors are also to be declared):\n\n'\\\" t -*- coding: ISO-8859-1 -*-\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-t _ --to-code=_",
                    "content": "Convert manual pages to encoding.\n\n--suffix=suffix\nForm each output file name by appending suffix to the input file name, after  removing\nany compression extension.\n",
                    "flag": "-t",
                    "long": "--to-code",
                    "arg": "_"
                },
                {
                    "name": "--in-place",
                    "content": "Overwrite each input file with the output, after removing any compression extension.\n",
                    "long": "--in-place"
                },
                {
                    "name": "-q --quiet",
                    "content": "Do not issue error messages when the page cannot be converted.\n",
                    "flag": "-q",
                    "long": "--quiet"
                },
                {
                    "name": "-d --debug",
                    "content": "Print debugging information.\n",
                    "flag": "-d",
                    "long": "--debug"
                },
                {
                    "name": "-h --help",
                    "content": "Print a help message and exit.\n",
                    "flag": "-h",
                    "long": "--help"
                },
                {
                    "name": "-V --version",
                    "content": "Display version information.\n",
                    "flag": "-V",
                    "long": "--version"
                }
            ]
        },
        "SEE ALSO": {
            "content": "iconv(1), man(1), manconv(1)\n",
            "subsections": []
        },
        "BUGS": {
            "content": "https://gitlab.com/man-db/man-db/-/issues\nhttps://savannah.nongnu.org/bugs/?group=man-db\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Colin Watson (cjwatson@debian.org).\n\n2.12.0                                       2023-09-23                                MAN-RECODE(1)",
            "subsections": []
        }
    },
    "summary": "man-recode - convert manual pages to another encoding",
    "flags": [
        {
            "flag": "-t",
            "long": "--to-code",
            "arg": "_",
            "description": "Convert manual pages to encoding. --suffix=suffix Form each output file name by appending suffix to the input file name, after removing any compression extension."
        },
        {
            "flag": "",
            "long": "--in-place",
            "arg": null,
            "description": "Overwrite each input file with the output, after removing any compression extension."
        },
        {
            "flag": "-q",
            "long": "--quiet",
            "arg": null,
            "description": "Do not issue error messages when the page cannot be converted."
        },
        {
            "flag": "-d",
            "long": "--debug",
            "arg": null,
            "description": "Print debugging information."
        },
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "Print a help message and exit."
        },
        {
            "flag": "-V",
            "long": "--version",
            "arg": null,
            "description": "Display version information."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "iconv",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/iconv/1/json"
        },
        {
            "name": "man",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/man/1/json"
        },
        {
            "name": "manconv",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/manconv/1/json"
        }
    ]
}