Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: CGI.pm and URL parameters

by Corion (Patriarch)
on May 17, 2009 at 13:01 UTC ( #764506=note: print w/replies, xml ) Need Help??


in reply to CGI.pm and URL parameters

Your script still depends on what input encoding the browser is sending the form values in. You will need to trace the whole path between what the browser sends and what it tells you the encoding is, through how you process that data, to the output. Possibly, you have to add the encoding not only to a header but also as a META tag in the generated page.

Replies are listed 'Best First'.
Re^2: CGI.pm and URL parameters
by ambs (Pilgrim) on May 17, 2009 at 13:07 UTC
    Unfortunately that doesn't change a thing. If I just remembered what changed in the machine...

    Alberto Simões

      Have you done this as the first communication to the browser?

      print "Content-type: text/html; charset=utf-8\n\n";

      IE requires this. Firefox will respect the <meta> tag directions, but IE needs to hear of UTF in the content headers.

      Blessings,

      ~Polyglot~

        You know, that line is what the CGI header function produces when called with -charset => utf-8.

        Alberto Simões

      What do you mean by "that"? Did you need to trace the whole path?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2022-12-08 11:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?