http://www.perlmonks.org?node_id=885611


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 (Patriarch) 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.