GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  TEMPLATE::STASH::FORCEUTF8 (3)

.ds Aq ’

NAME

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

CONTENTS

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
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 TEMPLATE::STASH::FORCEUTF8 (3) 2006-03-18

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.