Message125992
I said:
I wonder what result you get with the same browser, at the web page http://rishida.net/tools/conversion/ by entering the euro symbol into the Characters entry field, and choosing convert.
But I couldn't wait, so I ran a test with € in one of my input boxes, using Firefox, a FORM as:
<form enctype="multipart/form-data" method="post" action="...
and below is the Live Headers report. I note several things that seem relevant to this issue.
1) The character encoding isn't specified anywhere. In fact, the only content-type specification is the multipart/form-data in the environment.
2) Except for the Euro, everything in the data stream is ASCII (but could be ISO-8859-1, or latin-1).
3) Looking separately at the byte stream read by my experimental version of cgi.py which prints the bytes as they are read, I see that the encoding of the Euro is UTF-8: '\xe2\x82\xac'
4) Because of 1), it is clear that default encoding types must be applied, and it is clear that Firefox provides UTF-8.
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Content-Type: multipart/form-data; boundary=---------------------------1650566221634
Content-Length: 527
-----------------------------1650566221634
Content-Disposition: form-data; name="type"
summary
-----------------------------1650566221634
Content-Disposition: form-data; name="submit"
Search
-----------------------------1650566221634
Content-Disposition: form-data; name="pre"
€
-----------------------------1650566221634
Content-Disposition: form-data; name="part"
-----------------------------1650566221634
Content-Disposition: form-data; name="key"
-----------------------------1650566221634-- |
|
Date |
User |
Action |
Args |
2011-01-11 10:07:02 | v+python | set | recipients:
+ v+python, barry, amaury.forgeotdarc, ggenellina, pitrou, vstinner, eric.araujo, r.david.murray, oopos, tercero12, tcourbon, tobias, flox, pebbe, quentel, erob |
2011-01-11 10:07:02 | v+python | set | messageid: <1294740422.1.0.519032092748.issue4953@psf.upfronthosting.co.za> |
2011-01-11 10:06:51 | v+python | link | issue4953 messages |
2011-01-11 10:06:50 | v+python | create | |
|