Closed Bug 480120 Opened 17 years ago Closed 17 years ago

Using a GET request on a FORM sends the euro sign as %80, this is not ISO-8859-1

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows Vista
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 228779

People

(Reporter: mirco.babin, Unassigned)

Details

User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; nl; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 (.NET CLR 3.5.30729) When submitting a form with the GET method and a field contains the euro sign, the euro sign is url encoded as %80. This is not correct, because %80 is the euro sign in codepage windows-1252. In ISO-8859-1 the %80 is not defined. Strangely enough the "_charset_" hidden field explicitly specifies "ISO-8859-1". Reproducible: Always Steps to Reproduce: 1) Fill in the the next form with a euro sign and submit it <h1>GET</h1> <form action="" method="get"> <input type="hidden" name="_charset_"> <table> <tr><td>String</td><td><input type="text" name="String"></td></tr> <tr><td><input type="submit" value="submit"></td></tr> </table> </form> 2) Monitor the TCP connection. GET /oep/wwwwdebug.pcd?_charset_=ISO-8859-1&String=%80%26%237809%3B%26%237808%3B HTTP/1.1 3) Notice the first %80, I entered a euro sign in the first position. The other two characters are: - a small "w" with a "`" on top of it - a capital "w" with a "`" on top of it Actual Results: If the server receiving the request uses windows-1252 as it's base codepage everything goes well. Otherwise some invalid character will be displayed instead of the euro sign Expected Results: The software should not have used %80, but should have used &#8364; to html encode the euro sign. To my surprise were the 2 additional characters escaped using the html convention. It seems like the ISO-8859-1 codepage is not correctly implemented. IE 7 produces exactly the same result.
Component: General → HTML: Form Submission
Product: Firefox → Core
QA Contact: general → form-submission
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.