Lyo Kato > Catalyst-View-TT-ForceUTF8 > Catalyst::View::TT::ForceUTF8

Download:
Catalyst-View-TT-ForceUTF8-0.13.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  3
Open  0
View Bugs
Report a bug
Module Version: 0.13   Source  

NAME ^

Catalyst::View::TT::ForceUTF8 - (DEPRECATED) Template View Class with utf8 encoding

SYNOPSIS ^

  package MyApp::View::TT;
  use base 'Catalyst::View::TT::ForceUTF8';

DESCRIPITON ^

Template View Class with utf8 encoding.

This allows you to prevent publishing garbled result.

Now this module is deprecated. http://dev.catalystframework.org/wiki/gettingstarted/tutorialsandhowtos/using_unicode

CONFIG ^

  __PACKAGE__->config(
    INCLUDE_PATH        => [..],
    TIMER               => 0,
    ... # and other View::TT's configuration.
    STRICT_CONTENT_TYPE => 1,
    DEFAULT_ENCODING    => 'utf-8',
  );
DEFAULT_ENCODING

'utf-8' is set by default. See more detail Template::Provider::Encoding.

CONTENT TYPE

When you set *STRICT_CONTENT_TYPE* configuration, It automatically set content-type 'application/xhtml+xml; charset=utf-8' for browsers except MSIE.

SEE ALSO ^

Catalyst::View::TT, Template::Provider::Encoding

AUTHOR ^

Lyo Kato, lyo.kato@gmail.com

LISENCE ^

The library if free software; you can redistribute it and/or modify it under the same terms as Perl itself.