Realbot has asked for the wisdom of the Perl Monks concerning the following question:
The strange thing is that running this form under these environments<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Test utf</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" +> </head> <body> <form name="formutfget" method="GET"> Enter text (get):<br> <input type="text" name="textget" size="20" maxlength="30"> </form> <form name="formutfpost" method="POST"> Enter text (post):<br> <input type="text" name="textpost" size="20" maxlength="30"> </form> Value of GET: <% $textget %><br> Hex of GET: <% $hexget %><br> Value of POST: <% $textpost %><br> Hex of POST: <% $hexpost %><br> </body> </html> <%args> $textget => '' $textpost => '' $hexget => '' $hexpost => '' </%args> <%init> $hexget = unpack('H*', $textget); $hexpost = unpack('H*', $textpost); </%init>
Value of POST: Δωδεκανήσων26233931363b26233936393b26233934383b26233934393b26233935343b2623393435 +3b26233935373b26233934323b26233936333b26233936393b26233935373b
26233931363b26233936393b26233934383b26233934393b26233935343b2623393435 +3b26233935373b26233934323b26233936333b26233936393b26233935373b
2005-01-09 Janitored by Arunbear - added code tags around long hex strings, to prevent distortion of site layout
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Differences in UTF-8 html form
by iblech (Friar) on Jan 09, 2005 at 18:26 UTC | |
by Realbot (Scribe) on Jan 09, 2005 at 19:56 UTC | |
|
I'm troubleshooting post requests with german chars...
by tphyahoo (Vicar) on Jan 10, 2005 at 12:29 UTC | |
by Realbot (Scribe) on Jan 10, 2005 at 12:50 UTC | |
by tphyahoo (Vicar) on Jan 10, 2005 at 13:01 UTC | |
by tphyahoo (Vicar) on Jan 10, 2005 at 13:58 UTC | |
by tphyahoo (Vicar) on Jan 11, 2005 at 16:40 UTC | |
|
Re: Differences in UTF-8 html form
by jmanning2k (Pilgrim) on Jan 10, 2005 at 17:01 UTC | |
|
Re: Differences in UTF-8 html form
by Realbot (Scribe) on Jan 10, 2005 at 18:25 UTC |