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

Re: mod_perl STDOUT

by greengaroo (Hermit)
on Oct 17, 2012 at 13:35 UTC ( #999543=note: print w/ replies, xml ) Need Help??

in reply to mod_perl STDOUT

So, what is your question?

There are no stupid questions, but there are a lot of inquisitive idiots.

Comment on Re: mod_perl STDOUT
Replies are listed 'Best First'.
Re^2: mod_perl STDOUT
by swelz (Initiate) on Oct 17, 2012 at 13:57 UTC
    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.

        I agree in general but here is the thing. I come to the conclusion that this is related to my locales on the Ubuntu machine that is running this particular site. All i could make out so far was that the ENV VARS


        are set to en_US even if they should be en_US.UTF-8 or POSIX.

        On my local system i run apache on gentoo (yeah i know) and all related ENV vars are set to POSIX and the default output on STDOUT in mod_perl is UTF8. I get the job done with perl ... but this makes me sick. If i get that solved i will report back

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2015-11-25 01:43 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (667 votes), past polls