Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

mod_perl STDOUT

by swelz (Initiate)
on Oct 17, 2012 at 11:41 UTC ( #999533=perlquestion: print w/replies, xml ) Need Help??
swelz has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks,

the problem is easily explained : When i want to print any UTF-8 encoded strings inside mod_perl2 on apache2 i always have to include :

use utf8::all; or  binmode STDOUT, ':utf8';

which does the same afaik :-P What is wrong here sorry cant tell. And besides : Sorry that this is probably rather a apache or mod_perl question but dunno whom to ask!

thx & regards, Steven

Replies are listed 'Best First'.
Re: mod_perl STDOUT
by greengaroo (Hermit) on Oct 17, 2012 at 13:35 UTC

    So, what is your question?

    There are no stupid questions, but there are a lot of inquisitive idiots.
      should'nt it be UTF8 cappable by default or rather what directive in apache or mod_perl would make UTF8 default for STDOUT ?
        ++ for a good question, but, no. Perl can't tell if you're sending utf8 text or a binary file (e.g., you have a mod_perl script that generates a PDF and sends that instead of html). Only you as the programmer know enough context to decide what format to set the output to.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://999533]
Approved by Corion
[Eily]: when did you become a bishop though? 428 xp that's not too long ago is it?
[Eily]: and congratulations :P
[choroba]: Eily++ # made the smiley on his face instead of in the message
[LanX]: weekend ... and waiting that chacellor choroba finally catches up ;-p
LanX last weekend or the one before (???)
choroba needs more questions to provide answers to
jedikaiti looked at last hour of CB, saw "boos" but read "boobs"

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2017-09-20 15:52 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (237 votes). Check out past polls.