[please try to quote the relevant pars and delete the rest, so not to make the threads blown up for no reason. Thanks]

Bruno Pommerel wrote:
[...]
Than the output is garbaged. After digging into it a bit, I realized that
if the input is UTF-8 encoded (google) than it fails. It the input is ascii,
it's ok. Am I facing an encoding problem ? The recent thread
http://www.gossamer-threads.com/archive/mod_perl_C1/modperl_F7/%5Bmp2%5D_OutputFilter_with_UTF-8_characters_P88526

seems  to push in that direction, although I see no clear solution. The first
handler (on top of this document) works on pure ascii files. Are there any
workarounds for this ?

This leaves the modperl problem domain and enters Perl's. mod_perl gives you the data, now it's your responsibility to handle the utf-8 data properly. You may need to read at least the utf8 manpage, to learn how to tell perl that the data is utf-8 encoded, and how to encode, decode it. You will find some examples in the mp2 test suite, though (hint: grep for utf8).


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


-- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html



Reply via email to