Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: Confusing UTF-8 bug in CGI-script

by wanradt (Scribe)
on Feb 01, 2011 at 20:27 UTC ( #885611=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Confusing UTF-8 bug in CGI-script
in thread Confusing UTF-8 bug in CGI-script

Huh, at least i found the difference between working production code and script here: in production i initialize CGI-object (inside BEGIN-block) before asking use open to decode STDIN. Seems, it is the significant difference. Still i hope, you could explain, why input from STDIN is not text.

Nġnda, WK


Comment on Re^3: Confusing UTF-8 bug in CGI-script
Re^4: Confusing UTF-8 bug in CGI-script
by ikegami (Pope) on Feb 01, 2011 at 20:55 UTC
    The CGI object only reads from STDIN during initialisation. Anything you do to STDIN later won't affect the CGI object.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (14)
As of 2015-07-02 17:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (44 votes), past polls