Submitting form with method POST from one character set to another shows target page in original page's character set.

RESOLVED INCOMPLETE

Status

()

Firefox
General
RESOLVED INCOMPLETE
13 years ago
8 years ago

People

(Reporter: John Blech, Unassigned)

Tracking

1.0 Branch
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [CLOSEME 5-15-2010])

(Reporter)

Description

13 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.0.7-1.1.fc4 Firefox/1.0.7
Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.0.7-1.1.fc4 Firefox/1.0.7

I have a form on a page with character set: 
Content-Type: text/html;charset=UTF-8

and View -> Character Encoding -> UTF-8


I submit the form using POST to an external page (in this case, a bank e-payment website), the bank responds like this:

HTTP/1.x 200 Document follows

Content-Type: text/html


which may be wrong, not specifying the charset.  but it's the bank so I can't change it.

Firefox displays the site as UTF-8 even though it's ISO-8859-1

If I specify a hidden parameter named _charset_, Firefox automatically sets it to UTF-8 and there is no way to override it.

utf-8 is automatically appended to accepted charset in the form:
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7


If I manually set Character encoding to ISO-8859-1 before submitting then target page displays in ISO-8859-1.

If I use GET method, then target page displays in ISO-8859-1 even though original page was in UTF-8.

IE works as expected.


Reproducible: Always

Steps to Reproduce:
1. Specify a form on a page with character encoding set to UTF-8
2. Submit the form to a page with no character set specified using POST method


Actual Results:  
Form "action" is displayed using UTF-8.

Expected Results:  
Form "action" is displayed in actual charset.

Using GET works and the Finnish banks accept it.
This bug was reported on Firefox 2.x or older, which is no longer supported and will not be receiving any more updates. I strongly suggest that you update to Firefox 3.6.3 or later, update your plugins (flash, adobe, etc.), and retest in a new profile. If you still see the issue with the updated Firefox, please post here. Otherwise, please close as RESOLVED > WORKSFORME
http://www.mozilla.com
http://support.mozilla.com/kb/Managing+profiles
http://support.mozilla.com/kb/Safe+mode
Whiteboard: [CLOSEME 5-15-2010]
Version: unspecified → 1.0 Branch
No reply, INCOMPLETE. Please retest with Firefox 3.6.3 or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.