1Template::Stash::ForceUUTsFe8r(3C)ontributed Perl DocumeTnetmaptliaotne::Stash::ForceUTF8(3)
2
3
4

NAME

6       Template::Stash::ForceUTF8 - Force UTF-8 (Unicode) flag on stash
7       variables
8

SYNOPSIS

10         use Template::Stash::ForceUTF8;
11         use Template;
12
13         my $tt = Template->new(
14             LOAD_TEMPLATES => [ Template::Provider::Encoding->new ],
15             STASH => Template::Stash::ForceUTF8->new,
16         );
17
18         my $vars;
19         $vars->{foo} = "\x{5bae}\x{5ddd}";         # Unicode flagged
20         $vars->{bar} = "\xe5\xae\xae\xe5\xb7\x9d"; # UTF-8 bytes
21
22         $tt->process($template, $vars); # this DWIMs
23

DESCRIPTION

25       Template::Stash::ForceUTF8 is a Template::Stash that forces Unicode
26       flag on stash variables. Best used with Template::Provider::Encoding.
27

SEE ALSO

29       Template::Provider::Encoding
30
31
32
33perl v5.28.0                      2006-03-18     Template::Stash::ForceUTF8(3)
Impressum