-
-
01 Aug 2007 06:58:16 UTC
- Distribution: Template-Provider-Encoding
- Module version: 0.03
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (2)
- Testers (2115 / 0 / 1)
- Kwalitee
Bus factor: 1- 92.31% Coverage
- License: unknown
- Activity
24 month- Tools
- Download (4.27KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Encode
- Template
- Test::More
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
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
Module Install Instructions
To install Template::Provider::Encoding, copy and paste the appropriate command in to your terminal.
cpanm Template::Provider::Encoding
perl -MCPAN -e shell install Template::Provider::Encoding
For more information on module installation, please visit the detailed CPAN module installation guide.