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

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

Dependencies

Annotate this POD

CPAN RT

New  3
Open  0
View/Report Bugs
Module Version: 0.08   Source   Latest Release: Catalyst-View-TT-ForceUTF8-0.13

NAME ^

Catalyst::View::TT::ForceUTF8 - 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.

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.

syntax highlighting: