[Catalyst] Catalyst Unicode woes ...

2007-08-09 Thread Tobias Kremer
Following up on a conversion I started on the DateTime mailing-list I'd like to ask if it is really neccessary to use C::P::Unicode if a site uses utf8-encoding? I have the problem that up until now everything worked absolutely fine without C::P::Unicode, Template::Stash::ForceUTF8,

Re: [Catalyst] Catalyst Unicode woes ...

2007-08-09 Thread Jonathan T. Rockway
On Thu, Aug 09, 2007 at 10:27:27AM +0200, Tobias Kremer wrote: I have the problem that up until now everything worked absolutely fine without C::P::Unicode, Template::Stash::ForceUTF8, Template::Provider::Encoding or any ForceUTF8 is a hack hack hack. If your program doesn't work without it,

Re: [Catalyst] Catalyst Unicode woes ...

2007-08-09 Thread Pedro Melo
Hi, On Aug 9, 2007, at 9:27 AM, Tobias Kremer wrote: Following up on a conversion I started on the DateTime mailing-list I'd like to ask if it is really neccessary to use C::P::Unicode if a site uses utf8-encoding? I have the problem that up until now everything worked absolutely fine

Re: [Catalyst] Catalyst Unicode woes ...

2007-08-09 Thread Matt Lawrence
Pedro Melo wrote: Hi, On Aug 9, 2007, at 9:27 AM, Tobias Kremer wrote: Following up on a conversion I started on the DateTime mailing-list I'd like to ask if it is really neccessary to use C::P::Unicode if a site uses utf8-encoding? Also if you use open(), make sure you use the three

Re: [Catalyst] Catalyst Unicode woes ...

2007-08-09 Thread Pedro Melo
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

Re: [Catalyst] Catalyst Unicode woes ...

2007-08-09 Thread Tobias Kremer
Tobias, I tried jrock's advice of adding C::P::Unicode to the Cat app you sent me a couple days ago - and it does fix the encoding problem. I also did that but it only works in some cases. Try adding a block element to the FormFu YAML file (or a comment for the date element) that contains

Re: [Catalyst] Catalyst Unicode woes ...

2007-08-09 Thread Tobias Kremer
Zitat von Tatsuhiko Miyagawa [EMAIL PROTECTED]: 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.

Re: [Catalyst] Catalyst Unicode woes ...

2007-08-09 Thread Jonas Alves
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

Re: [Catalyst] Catalyst Unicode woes ...

2007-08-09 Thread Daisuke Maki
I've been doing Japanese web pages for such a long time now, and yet I still can't claim to have a full grasp of things. But anyways, what I do is: * All my templates are in unicode (open documents with set enc=utf-8, NO BOM), as well as my FormFu config files. * I do NOT use

Re: [Catalyst] Catalyst Unicode woes ...

2007-08-09 Thread Tobias Kremer
Zitat von Tatsuhiko Miyagawa [EMAIL PROTECTED]: 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. I

Re: [Catalyst] Catalyst Unicode woes ...

2007-08-09 Thread Bill Moseley
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

Re: [Catalyst] Catalyst Unicode woes ...

2007-08-09 Thread Tobias Kremer
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

Re: [Catalyst] Catalyst Unicode woes ...

2007-08-09 Thread Matt S Trout
On Thu, Aug 09, 2007 at 02:56:31PM +0200, Tobias Kremer wrote: Zitat von Tatsuhiko Miyagawa [EMAIL PROTECTED]: 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

Re: [Catalyst] Catalyst Unicode woes ...

2007-08-09 Thread Matt S Trout
On Thu, Aug 09, 2007 at 04:42:53PM +0200, Tobias Kremer wrote: 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

Re: [Catalyst] Catalyst Unicode woes ...

2007-08-09 Thread Tatsuhiko Miyagawa
On 8/9/07, Tobias Kremer [EMAIL PROTECTED] wrote: 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,