[Templates] Unicode problem
Nikolay Shaplov
N at shaplov.ru
Tue Mar 25 16:25:35 GMT 2008
On Tue, 25 Mar 2008 16:04:55 +0100
Clinton Gormley <clint at traveljury.com > wrote:
> You're not specifying UTF8 anywhere:
>
> > $template->process('utf-example.tmpl', $vars)
> > || die "Template process failed: ", $template->error(), "\n";
>
> >From the docs:
>
> Alternately, the binmode argument can specify a particular IO layer
> such as ":utf8".
>
> $tt->process($infile, $vars, $outfile, binmode => ':utf8')
> || die $tt->error(), "\n";
This does not work for me for some reason... (I've installed last
release of Template from CPAN, and it did not change anything)
But it is not very important, the other solutions will do.
More information about the templates
mailing list