Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Help for "Cannot decode string with wide characters..." and CGI.pm

by ikegami (Patriarch)
on Apr 10, 2012 at 00:34 UTC ( [id://964236]=note: print w/replies, xml ) Need Help??


in reply to Help for "Cannot decode string with wide characters..." and CGI.pm

Get rid of

binmode(STDIN, ":utf8");

Your corrupting the data stream passed to CGI. The proper way to decode the parameters is using

use CGI qw(-utf8);

which you already use. Speaking of doing the same thing twice, you did *that* twice too! First you tell Perl the source code is UTF-8

use utf8;

then you tell it again using a buggy version of the first method.

use encoding 'utf8';

The encoding is UTF-8, by the way. utf8 is something else.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (7)
As of 2024-04-18 08:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found