Catalyst::View::TT::ForceUTF8(3p)

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.

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

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

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.