--- Comment #10 from M. de Rooy <[hidden email]> 2011-10-10 12:59:53 UTC ---
I saw that in your patch you encoded the data.
AFAIK you should decode data coming from outside the program and you could
leave the encoding to perl when outputting the data as long as you have the
encoding of your file handles correctly.
Nevertheless, I still think your patch will work in most cases.
Note that it is not needed to decode data from LibXSLT if the stylesheet
contains the instruction to use UTF8 (See CPAN.)
I would suggest to add the instruction to use UTF8 in the HTML header.
Sending a small additional patch for that purpose. Could you check it?