Test2::Tools::Encoding - Tools for managing the encoding of Test2 based tests.
Contents
Copyright
Copyright 2018 Chad Granum <exodist@cpan.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl
itself.
See http://dev.perl.org/licenses/
perl v5.40.1 2025-07-03 Test2::Tools::Encoding(3perl)
Description
This module exports a function that lets you dynamically change the output encoding at will.
Exports
All subs are exported by default.
set_encoding($encoding)
This will set the encoding to whatever you specify. This will only affect the output of the current
formatter, which is usually your TAP output formatter.
Maintainers
Chad Granum <exodist@cpan.org>
Name
Test2::Tools::Encoding - Tools for managing the encoding of Test2 based tests.
Source
The source code repository for Test2-Suite can be found at https://github.com/Test-More/Test2-Suite/.
Synopsis
use Test2::Tools::Encoding;
set_encoding('utf8');
