When printing from perl to a file or STDOUT or CGI STDOUT, I am supposed to binmode the filehandle/STDOUT with a :utf8 layer. But if I do this under mod_perl I'll be binmoding STDOUT different for each application. Won't that royally screw things up? The docs for binmode say one should set it as soon as possible after opening the handle.
Besides, I'm not sure mod_perl2 even uses STDOUT. From what I understand it just intercepts print calls and handles them in some other way. So I'm not sure settign binmode on STDOUT has any relevance for mod_perl2.
I have had a frustrating experience trying to find answers on this. The mod_perl2 changefile notes "much better support for Unicode" but I could not find anything concrete in the docs, or if I did I did not undestand it. A search of mod_perl2 docs for Unicode turns up the changefile and a troubleshooting tip involving byte order marks.
I found a BINMODE in Apache2::RequestIO but it is part of the "TIE interface," which does not sound like what I am looking for, and it says "NoOP", which does not sound promising anyway.
Not much luck with Google or Usenet searches either.
Any help is much appreciated.
In reply to Unicode and mod_perl 2 by ryantate
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |