Template::Plugin::Decode - decoding filter plugin for Template-Toolkit.
at first, [% USE Decode %] then you can use the filter 'decode'. this filter encodes string from UTF-8 to Perl's inner unicode format. [% multibyte_str | decode %]
Template::Plugin::Decode is a plugin for TT, which allows you to decode output string to unicode(Perl inner format).
I guess you often see scrambled results, when you use TT2 with templates and embedded parameters including utf-8 multibyte characters. That's because it combines decoded string(Perl inner format) and undecoded one.
To prevent it, use this module.
This is a one of solutions for this problem.
Use utf-8 template files with BOM and decode parameters that are embedded into it, and you'll never seen garbled text.
Lyo Kato <email@example.com>
Copyright 2005 by Lyo Kato.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.