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.