On Dec 20, 2004, at 19:49, Igor Lobanov wrote:
Today I met problem with reading our site newsfeed which uses xml with native encoding. I decided to generate newsfeeds in UTF8 charset. The only thing I needed was to add convertion filter "my_charset" -> "utf8". In my scripts I use Unicode::MapUTF8 for such purpose which have 2 function for conversions. So I wrote Template::Plugin::MapUTF8 which defines 2 filters "from_utf8" and "to_utf8".
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" } );
_______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates
