Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Template::Stash::ForceUser(Contributed Perl DocumTemplate::Stash::ForceUTF8(3)

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

SYNOPSIS
	 use 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} =	"\xe5\xae\xae\xe5\xb7\x9d"; # UTF-8 bytes

	 $tt->process($template, $vars); # this	DWIMs

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

SEE ALSO
       Template::Provider::Encoding

perl v5.32.1			  2006-03-18	 Template::Stash::ForceUTF8(3)

NAME | SYNOPSIS | DESCRIPTION | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Template::Stash::ForceUTF8&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help