Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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

Replies are listed 'Best First'.
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2016-12-05 10:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (76 votes). Check out past polls.