| Catalyst-View-TT-ForceUTF8 documentation | view source | Contained in the Catalyst-View-TT-ForceUTF8 distribution. |
Catalyst::View::TT::ForceUTF8 - (DEPRECATED) Template View Class with utf8 encoding
package MyApp::View::TT; use base 'Catalyst::View::TT::ForceUTF8';
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
__PACKAGE__->config(
INCLUDE_PATH => [..],
TIMER => 0,
... # and other View::TT's configuration.
STRICT_CONTENT_TYPE => 1,
DEFAULT_ENCODING => 'utf-8',
);
'utf-8' is set by default. See more detail Template::Provider::Encoding.
When you set *STRICT_CONTENT_TYPE* configuration, It automatically set content-type 'application/xhtml+xml; charset=utf-8' for browsers except MSIE.
Lyo Kato, lyo.kato@gmail.com
The library if free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Catalyst-View-TT-ForceUTF8 documentation | view source | Contained in the Catalyst-View-TT-ForceUTF8 distribution. |