On 09/08/07, Pedro Melo <[EMAIL PROTECTED]> wrote:
> Hi,
>
> On Aug 9, 2007, at 10:40 AM, Tatsuhiko Miyagawa wrote:
>
> > Similarly even if your templates are encoded in utf-8,
> > Template-Toolkit doesn't know which encoding they are in, until you
> > set BOM to your templates or use Template::Provider::Encoding to
> > explicitly specify the encoding to decode the template.
>
> hmms.. Is there a third way, just telling TT that all my templates
> are in UTF8? Setting the BOM is not easy with some editors.

Looking at Template::Provider::Encoding description:

"Template::Provider::Encoding is a Template Provider subclass to
decode template using its declaration. You have to declare encoding of
the template in the head (1st line) of template using (fake) encoding
TT plugin. Otherwise the template is handled as utf-8."

So if you want utf8 you just need to use T::P::E and don't need to
explicitly specify the encoding.

-- 
Jonas

_______________________________________________
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/

Reply via email to