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
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
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
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
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
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
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
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
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
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
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
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
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
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:
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
15 matches
Mail list logo