in reply to Unicode and mod_perl 2

There's some utf8-specific tests in mod_perl 2 that may help in this regard: one that tests the tied STDOUT/perlio STDOUT response, another that tests the $r->print response, and another involving posting data.

Replies are listed 'Best First'.
Re^2: Unicode and mod_perl 2
by ryantate (Friar) on Mar 12, 2006 at 21:44 UTC
    Thanks, this is quite useful. From reading the comments in the tests you linked to, it looks like Stas & Co have made binmode 'Just Work', and I am going to guess the binmode only affects the current request object, so not a big deal to have different binmode for different apps.

    Doing $r->print($utf8_content) apparently just works, too (based on the comments in the linked tests).

    Also, having re-read the binmode docs, I see it is in any explicitly OK to reset the layer while the handle is in progress, in any case.

    Thanks!