{
    "mode": "perldoc",
    "parameter": "Test2::Event::Encoding",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Test2%3A%3AEvent%3A%3AEncoding/json",
    "generated": "2026-06-13T05:02:34Z",
    "synopsis": "use Test2::API qw/context/;\nuse Test2::Event::Encoding;\nmy $ctx = context();\nmy $event = $ctx->sendevent('Encoding', encoding => 'UTF-8');",
    "sections": {
        "NAME": {
            "content": "Test2::Event::Encoding - Set the encoding for the output stream\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The encoding event is generated when a test file wants to specify the encoding to be used when\nformatting its output. This event is intended to be produced by formatter classes and used for\ninterpreting test names, message contents, etc.\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Test2::API qw/context/;\nuse Test2::Event::Encoding;\n\nmy $ctx = context();\nmy $event = $ctx->sendevent('Encoding', encoding => 'UTF-8');\n",
            "subsections": []
        },
        "METHODS": {
            "content": "Inherits from Test2::Event. Also defines:\n\n$encoding = $e->encoding\nThe encoding being specified.\n",
            "subsections": []
        },
        "SOURCE": {
            "content": "The source code repository for Test2 can be found at http://github.com/Test-More/test-more/.\n",
            "subsections": []
        },
        "MAINTAINERS": {
            "content": "Chad Granum <exodist@cpan.org>\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "Chad Granum <exodist@cpan.org>\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright 2020 Chad Granum <exodist@cpan.org>.\n\nThis program is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself.\n\nSee http://dev.perl.org/licenses/\n",
            "subsections": []
        }
    },
    "summary": "Test2::Event::Encoding - Set the encoding for the output stream",
    "flags": [],
    "examples": [],
    "see_also": []
}