[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cannot get UTF-8 out of mod_perl


On Nov 16, 2007 10:08 AM, Michael Peters <suppressed> wrote:
> Michael Lackhoff wrote:
> ...
> I'm not sure if that works when using $r->print() though.

mod_perl doesn't use Perl's filter layers. $r->print is an octet
sequence interface, so you have to perform the encoding yourself
before call it, e.g.:

$r->print(Encode::encode('utf-8', $html));


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.