On Wed, Nov 4, 2009 at 12:15 AM, Michael Lackhoff
<lackh...@zbmed.uni-koeln.de> wrote:
> On 03.11.2009 01:22 Cees Hek wrote:
>
>> Have a look at this perlmonks post by Rhesa:
>>
>> http://www.perlmonks.org/?node_id=651574
>
> Thanks Cees (and of course Rhesa), this is exactly what I need!
>
> Since you are the author of CAP::TT, may I also ask how and when you do
> the encoding of the template output? Is utf8::encode in postprocess the
> way to go?

Template Toolkit works fine with utf8 templates, so I don't think you
need to encode the template output yourself.  if your template files
contain a BOM at the start then you don't need to do anything, or you
can set the ENCODING option to 'utf8' manually.  See this FAQ entry
for the details.

http://search.cpan.org/dist/Template-Toolkit/lib/Template/FAQ.pod#Why_do_I_get_rubbish_for_my_utf-8_templates?

However, I guess you should ensure that any data that you send to TT
is utf8 encoded.

Cheers,

Cees

#####  CGI::Application community mailing list  ################
##                                                            ##
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp    ##
##                                                            ##
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:          http://cgiapp.erlbaum.net/                 ##
##                                                            ##
################################################################

Reply via email to