Using Template::Provider::Encoding + Template::Stash::ForceUTF8 is one way to avoid these annoying utf-8 bytes vs. Unicode string woes.
On 8/7/07, Tobias Kremer <[EMAIL PROTECTED]> wrote: > Am 07.08.2007 um 18:40 schrieb Bill Moseley: > > 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 }; > -- Tatsuhiko Miyagawa