On Thu, Aug 09, 2007 at 02:56:31PM +0200, Tobias Kremer wrote:
> I just found the (undocumented?) "ENCODING" configuration option in
> Template::Provider. Setting this to "utf-8" makes the templates appear
> correctly with C::P::Unicode loaded. Is there still a need for
> Template::Provider::Encoding?
In config.yml
View::TT
ENCODING: UTF-8
Template provider will see you are running a modern Perl (UNICODE flag
in provider) and then look for a Byte Order Mark. If not found it
will then decode your content based on the ENCODING setting.
No, you don't need Template::Provider::Encoding if you only have one
encoding in your templates.
Yes you need Unicode (or the older Unicode::Encoding) plugin so that
input params are decoded and output is encoded back to utf8.
--
Bill Moseley
[EMAIL PROTECTED]
_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/