Hi, >I've solved my problem by adding "use open 'utf8';" at the beginning of >Template::Provider I don't think it is a good solution, because it will affect all projects that use TT on the machine
I've searched better about this issue and found: http://template-toolkit.org/pipermail/templates/2004-June/006270.html you'll have to add a BOM to every utf template. (also make sure you have TT 2.14) I also found this Template-InputStreamDecoder module, that don't require you to add that BOM, but it is also a not so good solution. have a look at Template::Provider ... my $boms = [ 'UTF-8' => "\x{ef}\x{bb}\x{bf}", 'UTF-32BE' => "\x{0}\x{0}\x{fe}\x{ff}", 'UTF-32LE' => "\x{ff}\x{fe}\x{0}\x{0}", 'UTF-16BE' => "\x{fe}\x{ff}", 'UTF-16LE' => "\x{ff}\x{fe}", ]; -- Oleg Burlaca NeoNet _______________________________________________ templates mailing list [email protected] http://lists.template-toolkit.org/mailman/listinfo/templates
