On Tue, 21 Dec 2004 09:14:30 +0000
Tom Insam <[EMAIL PROTECTED]> wrote:
> This really shouldn't be required. Feed TT proper perl strings, and in
> the process() call, set the binmode of the output filehandle to 'utf8',
> and TT will write the right thing (requires very recent TT release,
> though)
>
> $tt->process( $template, $vars, $output_file, { binmode => "utf8" } );
Looking through Template.pm shows that "binmode" option works only when
you dump the template output to files (sub _output). So when you want to
convert the output into some native encodings without dumping to a
temporary file (i.e. print it to scalar or filehandle), you still have
to do it manually or to setup PerlIO layer before process().
--
Tatsuhiko Miyagawa <[EMAIL PROTECTED]>
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates