Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: mod_perl STDOUT

by Tanktalus (Canon)
on Oct 17, 2012 at 15:24 UTC ( #999561=note: print w/replies, xml ) Need Help??


in reply to Re^2: mod_perl STDOUT
in thread mod_perl 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.

Replies are listed 'Best First'.
Re^4: mod_perl STDOUT
by swelz (Initiate) on Oct 18, 2012 at 09:00 UTC

    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

    LC_ALL, LANG and LANGUAGE

    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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://999561]
help
Chatterbox?
[Lady_Aleena]: ctags?
[shmem]: ctags is a program which (recursively) extracts the symbols from source and stores them in a one-file database. This allows you to query the locations where these symbols (e.g. a subroutine name) are used anywhere in the source code tree...
[shmem]: ...from inside the editor.
[shmem]: apt-get install exuberant-ctags
[Lady_Aleena]: I think I heard vim has a big learning curve.
[shmem]: then in the root of your source tree run: ctags -R
[shmem]: you get a file named tags where all symbols and the places where they are used are listed
[Lady_Aleena]: geany may not support that.
[shmem]: I see that there is a plugin geany-plugin- codenav

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2017-04-27 12:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (506 votes). Check out past polls.