{
    "content": [
        {
            "type": "text",
            "text": "# PerlIO::encoding (perldoc)\n\n## NAME\n\nPerlIO::encoding - encoding layer\n\n## SYNOPSIS\n\nuse PerlIO::encoding;\nopen($f, \"<:encoding(foo)\", \"infoo\");\nopen($f, \">:encoding(bar)\", \"outbar\");\nuse Encode qw(:fallbacks);\n$PerlIO::encoding::fallback = FBPERLQQ;\n\n## DESCRIPTION\n\nThis PerlIO layer opens a filehandle with a transparent encoding filter.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "PerlIO::encoding",
        "section": "",
        "mode": "perldoc",
        "summary": "PerlIO::encoding - encoding layer",
        "synopsis": "use PerlIO::encoding;\nopen($f, \"<:encoding(foo)\", \"infoo\");\nopen($f, \">:encoding(bar)\", \"outbar\");\nuse Encode qw(:fallbacks);\n$PerlIO::encoding::fallback = FBPERLQQ;",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 9,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "PerlIO::encoding - encoding layer\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use PerlIO::encoding;\n\nopen($f, \"<:encoding(foo)\", \"infoo\");\nopen($f, \">:encoding(bar)\", \"outbar\");\n\nuse Encode qw(:fallbacks);\n$PerlIO::encoding::fallback = FBPERLQQ;\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This PerlIO layer opens a filehandle with a transparent encoding filter.\n\nOn input, it converts the bytes expected to be in the specified character set and encoding to\nPerl string data (Unicode and Perl's internal Unicode encoding, UTF-8). On output, it converts\nPerl string data into the specified character set and encoding.\n\nWhen the layer is pushed, the current value of $PerlIO::encoding::fallback is saved and used as\nthe CHECK argument when calling the Encode methods encode() and decode().\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "open, Encode, \"binmode\" in perlfunc, perluniintro\n",
                "subsections": []
            }
        }
    }
}