Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: HTML Form > PERL Script in UTF-8 issue

by Your Mother (Canon)
on Aug 29, 2012 at 22:31 UTC ( #990587=note: print w/ replies, xml ) Need Help??


in reply to Re^2: HTML Form > PERL Script in UTF-8 issue
in thread HTML Form > PERL Script in UTF-8 issue

use CGI qw( -utf8 );

Will do this automatically for you; the caveat being it will cause problems with file uploads. Otherwise it's quite handy.


Comment on Re^3: HTML Form > PERL Script in UTF-8 issue
Download Code
Re^4: HTML Form > PERL Script in UTF-8 issue
by Anonymous Monk on Aug 30, 2012 at 03:25 UTC
Re^4: HTML Form > PERL Script in UTF-8 issue
by Jishanator (Initiate) on Sep 04, 2012 at 14:52 UTC
    This did not work... After thorough research, apparently the problem resides within the STDIN, the variables from the FORM element are always raw, therefore never encoded. To resolve; decode the elements to UTF8. I can't seem to find a "global" method of doing so, so calling a loop that flips through the array of FORM elements will seemingly have to be my fix.

      This does exactly what you describe: decodes to utf-8. It's high time you show a minimal set of code to replicate the problem you're having. It's almost certainly not what you think it is.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2014-08-23 03:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (171 votes), past polls