UTF-8 + HTML::Template + CGI::Fast

Andrew McGregor andy at txm.net
Fri Dec 4 10:54:17 GMT 2009


> If a user enters UTF-8 chars then the string displayed is corrupt, or
> looks like it has been double encoded.

Adding this:

1293 $rtbx_senderDetails = decode("utf8", $rtbx_senderDetails);

Just before passing the param to HTML::Template seems to work.

So I'm switching the UTF flag on which means it is handled correctly
by HTML::Template?

Also, is there a more global way to resolve this as there are a few fields?

Thanks

Andy


More information about the london.pm mailing list