Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Unicode and mod_perl 2

by randyk (Parson)
on Mar 12, 2006 at 20:11 UTC ( [id://536131]=note: print w/replies, xml ) Need Help??


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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://536131]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-04-24 01:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found