Am 07.08.2007 um 18:40 schrieb Bill Moseley:
On Tue, Aug 07, 2007 at 06:30:46PM +0200, Tobias Kremer wrote:
Yes, that's exactly why I just don't understand the problem. The rest
of my templates,
which are all utf-8 encoded, are displayed correctly though. What
UNICODE option do you mean?
I couldn't find it in Template::Manual::Config.
Look at the source of Template::Provider. If set it assumes the text
of the template is utf8 and decodes it.
But if your problem is displaying variables (not templates) that are
utf8 then sounds like something else.
Exactly. utf8-encoded text in the templates is displayed correctly.
Other
stuff coming in from the stash that is utf8-encoded works perfectly,
too.
Are you using the Unicode::Encoding plugin in your Catalyst
application?
No. This happens even with no plugins loaded at all. You can try it
out just by adding the following line to one of your controllers
and putting [% monthnames %] in the TT template:
$c->stash->{'monthnames'} = join ",", @{ DateTime::Locale->load('de')-
>month_names };
--Tobias