Re: apache and html template

Sven Neuhaus <[email protected]> Fri, 13 Jul 2007 09:24:38 +0200
Newsgroups gmane.comp.lang.perl.modules.html-template
Message-ID <[email protected]>
Blesson Paul wrote:
> > I have an issue with Polish character &#347;. This
> > charecter is corrupted when it is outputed through
> > HTML::Template->output().
> >
> > Only this charecter is causing the issue. Rest of them
> > are fine. Is there any solution to solve this

&#347; is an "s-acute", right? "ś" to be exact.

It works here using this test script in a utf8-xterm:

perl -MHTML::Entities -MHTML::Template -e '$a=decode_entities("&#347;");
 $c=q{<TMPL_VAR NAME="t">}; $b=HTML::Template->new(scalarref=>\$c);
 $b->param("t"=>$a); binmode(STDOUT, ":utf8"); print $b->output;'

When I pipe the output of this script into "od -t x1" I get the correct
output "c5 9b".

Does it only happen when run inside
-Sven

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Html-template-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/html-template-users