Zitat von Bill Moseley <[EMAIL PROTECTED]>:
> > Might be the case. But I really like to understand what is causing this
> > problem instead of just working around it with some plugins.
> Like I said, I suspect what's happening is you are reading in your
> utf8 templates and failing to decode them into Perl's internal encoding.
> Then when you print it out it gets printed as-is.  You are not
> generating utf8 as much as passing it through.

Makes sense.

> I would not use Template::Stash::ForceUTF8.  My opinion is you should
> be more careful about your input and correctly decode it where it
> enters your application.

So, what you're suggesting is using Catalyst::Plugin::Unicode alone? I just
tried that with a freshly created catalyst app. Month names are displayed fine
but everything else coming from the (utf8-encoded) templates is encoded twice.
Using T::S::ForceUTF8 solves this problem, but I have the strange feeling that
it shouldn't be neccessary ...

> Anyway, this isn't really DateTime related.

True. Sorry for getting off-topic. I re-posted it to the Catalyst mailing list.

Thanks!

--Tobias

Reply via email to