[Catalyst] Catalyst Unicode woes ...

Bill Moseley moseley at hank.org
Thu Aug 9 15:18:39 GMT 2007

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


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
moseley at hank.org

More information about the Catalyst mailing list