[Catalyst] TT and UNICODE: Garbled special characters

2007-09-05 Thread Stefan Kühn
I have a problem when outputting special characters with Template-Toolkit and C::P::Unicode. I passed a simple template parameter from the controller to the view. The parameter contains a special character and is being garbled in the output. I studied the mailing list the whole afternoon, but

Re: [Catalyst] TT and UNICODE: Garbled special characters

2007-09-05 Thread Tobias Kremer
Quoting Stefan Kühn [EMAIL PROTECTED]: I have a problem when outputting special characters with Template-Toolkit and C::P::Unicode. I passed a simple template parameter from the controller to the view. The parameter contains a special character and is being garbled in the output. * In

Re: [Catalyst] TT and UNICODE: Garbled special characters

2007-09-05 Thread Stefan Kühn
Hi Tobias i tried both of it, but still got the same result. NEXT TRY: * i saved the controller test.pm in UTF-8 encoding, * adapted the broken character ... * called the url * and it worked! QUESTION: Catalyst generates Perl files in the computer's standard encoding (which is cp1252). For

Re: [Catalyst] TT and UNICODE: Garbled special characters

2007-09-05 Thread Daniel McBrearty
if you are going to write unicode characters in your source code, don't you need to say use utf8; or something? http://search.cpan.org/~nwclark/perl-5.8.8/lib/utf8.pm I'm not sure what the default is.Source code is ascii by default , AFAIK - if you are going to use something which is in the

Re: [Catalyst] TT and UNICODE: Garbled special characters

2007-09-05 Thread Stefan Kühn
On 9/5/07, Tobias Kremer [EMAIL PROTECTED] wrote: QUESTION: Catalyst generates Perl files in the computer's standard encoding (which is cp1252). For *unicode best practice* it should be in UTF-8 encoded. Do you agree? AFAIK Catalyst itself doesn't generate any Perl files at all. But maybe

Re: [Catalyst] TT and UNICODE: Garbled special characters

2007-09-05 Thread Stefan Kühn
On 9/5/07, Daniel McBrearty [EMAIL PROTECTED] wrote: how your editor is actually writing that u-with-umlaut into the text file will also be a fatcor (it might be entering ISO-8859-1 or UTF8). try using the appropriate \x{ ... } way of writing the char to see if this is your problem. NOW i am

Re: [Catalyst] TT and UNICODE: Garbled special characters

2007-09-05 Thread Daniel McBrearty
It seems to me that Template-Toolkit does no UTF-8-encoding of the outputted variables. well, it shouldn't. In perl, strings are already utf8, internally. If TT was to do encoding, they would be double-encoded. so what you have to do is get that u-with-umlaut *into* perl as a utf8 encoded

Re: [Catalyst] TT and UNICODE: Garbled special characters

2007-09-05 Thread Stefan Kühn
On 9/5/07, Daniel McBrearty [EMAIL PROTECTED] wrote: It seems to me that Template-Toolkit does no UTF-8-encoding of the outputted variables. well, it shouldn't. Maybe i should adjust my statement: __it looks like TT uses the wrong Encoding for the output of vars.__ Obviously, the string

Re: [Catalyst] TT and UNICODE: Garbled special characters

2007-09-05 Thread Daniel McBrearty
Obviously, the string variable reaches the stash correctly. I wrote it's content to a UTF-8 file and i found the result correctly. then I don't know. you could try updating the libs, but I can tell you that I've been using TT since mid last year, and had no problems - i have heaps of utf8

Re: [Catalyst] TT and UNICODE: Garbled special characters

2007-09-05 Thread Matt Rosin
Have you tried setting shell locale to utf8? A long time ago there were utf8 in tt threads but I haven't had trouble myself. However I have indeed had massive trouble trying to get a simple question mark (a GET url) to print that I put in the stash, like you are doing now, because tt would

RE: [Catalyst] TT and UNICODE: Garbled special characters

2007-09-05 Thread Hartmaier Alexander
Hi! This talk was great: http://vienna.yapceurope.org/ye2007/talk/552 Check out the slides of his talk. -Alex -Original Message- From: Matt Rosin [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 05, 2007 3:15 PM To: The elegant MVC web framework Subject: Re: [Catalyst] TT and

Re: [Catalyst] TT and UNICODE: Garbled special characters

2007-09-05 Thread Bill Moseley
On Wed, Sep 05, 2007 at 01:14:54PM +0200, Stefan Kühn wrote: On 9/5/07, Tobias Kremer [EMAIL PROTECTED] wrote: QUESTION: Catalyst generates Perl files in the computer's standard encoding (which is cp1252). For *unicode best practice* it should be in UTF-8 encoded. Do you agree? AFAIK

Re: [Catalyst] unbuffered output via multiple templates

2007-09-05 Thread Matt S Trout
On Thu, Aug 30, 2007 at 07:22:38PM -0600, Todd Harris wrote: Hi all - Quick introduction: I'm new to Catalys, but I've been reading the mailing list online for some time. I finally have a suitable project and have just started working on it. The documentation on list so far have been a

Re: [Catalyst] TT and UNICODE: Garbled special characters

2007-09-05 Thread Daniel McBrearty
This talk was great: http://vienna.yapceurope.org/ye2007/talk/552 Check out the slides of his talk. looks interesting - where *are* the slides? no link from the page :-) thanks! ___ List: Catalyst@lists.rawmode.org Listinfo:

[Catalyst] make test fails with C:P:Session:State::Cookie

2007-09-05 Thread Daniel McBrearty
this is all a brand new install on ubuntu 7, so all deps should be most recent off my mirror. any ideas? [EMAIL PROTECTED]:~/.cpan/build/Catalyst-Plugin-Session-State-Cookie-0.07# perl Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for