Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 wandering the Monastery: (3)
As of 2014-09-20 04:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (152 votes), past polls