|Welcome to the Monastery|
Re: mod_perl2 and utf8by ikegami (Pope)
|on Dec 23, 2009 at 17:59 UTC||Need Help??|
It all comes down to:
You didn't do that.
You've shown that $r->print's expects a string of bytes just like the builtin print. If you want to output characters, you need to encode them manually or by telling the object to do it for you (such as by using PerlIO layer :utf8 or :encoding on a file handle) first.
The only reason $strB works is that $r->print does the best it can with an invalid input. You should get "Wide character" warnings alerting you to that fact.
You said binmode doesn't work on $r, so that leaves you with the option of doing it manually.
Update: Adjusted phrasing