Query: template::stash::forceutf8
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Template::Stash::ForceUTF8(3pm) User Contributed Perl Documentation Template::Stash::ForceUTF8(3pm)NAMETemplate::Stash::ForceUTF8 - Force UTF-8 (Unicode) flag on stash variablesSYNOPSISuse Template::Stash::ForceUTF8; use Template; my $tt = Template->new( LOAD_TEMPLATES => [ Template::Provider::Encoding->new ], STASH => Template::Stash::ForceUTF8->new, ); my $vars; $vars->{foo} = "x{5bae}x{5ddd}"; # Unicode flagged $vars->{bar} = "xe5xaexaexe5xb7x9d"; # UTF-8 bytes $tt->process($template, $vars); # this DWIMsDESCRIPTIONTemplate::Stash::ForceUTF8 is a Template::Stash that forces Unicode flag on stash variables. Best used with Template::Provider::Encoding.SEE ALSOTemplate::Provider::Encoding perl v5.12.3 2006-03-18 Template::Stash::ForceUTF8(3pm)