Closed
Bug 68433
Opened 25 years ago
Closed 24 years ago
Using POST instead of GET, Mozilla doesn't apply the meta http-equiv charset
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
VERIFIED
WORKSFORME
Future
People
(Reporter: wolruf, Assigned: pollmann)
References
()
Details
(Keywords: testcase)
Reproducible bug.
Mozilla: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; 0.8) Gecko/20010209
Basically, Mozilla forgets to apply the charset used in <meta
http-equiv="Content-Type"... only when submitting a form with POST method; the
exact same form submitted with GET method applies the correct charset.
For example, use http://www.epita.fr:8000/~cahagn_o/mozbug/post.html
Notice it uses ISO-8859-1 and submit it, the result is a valid UTF-8 page but
the content is shown as ISO-8859-1.
Submit the same form using http://www.epita.fr:8000/~cahagn_o/mozbug/get.html
and notice it renders correctly the arabic content.
In fact, even if the form was itself UTF-8, the result of a POST method won't be
UTF-8 but something else (I guess ISO-8859-1). So I guess the initial charset is
not important, it simply doesn't apply a charset after a POST method.
Check http://www.epita.fr:8000/~cahagn_o/mozbug/arpost.html which is arabic it
self, the result of the POST is still not UTF-8 (the source says it's UTF-8 but
Mozilla doesn't render it as UTF-8).
I checked but saw no sign of such a bug so I hope it's not a dup.
If this is not a bug, can you please tell me how to to fix this, the Webmail
client I wrote won't work properly because of this on Mozilla:
http://nocc.sourceforge.net/
Reporter | ||
Comment 2•24 years ago
|
||
Bug is solved when sending charset inside HTTP header, see for example
http://www.epita.fr:8000/~cahagn_o/mozbug/post2.html that uses a slighly
different PHP script to parse the form's result.
The script sends Content-type: text/html; charset=UTF-8. The result is then
correct.
However, I believe there's a bug with Mozilla which can't do META over HTTP
using POST whereas it works correctly using GET. Any comment ?
Comment 3•24 years ago
|
||
Confirmed
Platform: PC
OS: Linux 2.2.17
Mozilla Build: 2001030108
Nice testcase btw. Marking NEW.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase
OS: Windows 2000 → All
Hardware: PC → All
Reporter | ||
Comment 4•24 years ago
|
||
Can anyone reconfirm ?
I'm really surprised, I can't reproduce the bug anymore on Win2k using:
Build 20010305
Build 20010303
Build 2001030205
Build 2001030110
Build 2001022705
and even Mozilla 0.8.
Every build here shows proper arabic fonts.
I'll try this evening on Linux.
Comment 5•24 years ago
|
||
per triage: resolving as WORKSFORME
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
Target Milestone: --- → Future
Reporter | ||
Comment 6•24 years ago
|
||
I was wrong, I still have the problem on another Win2k machine and on Linux
using any build (including latest build).
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Reporter | ||
Comment 7•24 years ago
|
||
Confirmed
Platform: PC
OS: brand new Win98SE
Mozilla Build: 20010509
I'm submitting because I thought first that the IBM BiDi checkin would change
the behaviour but META over HTTP is still somewhat buggy with the newest build.
The second method (charset within HTTP header still works however).
Comment 9•24 years ago
|
||
confirmed, see also the WWWJDIC Japanese Dictionary at
http://www.csse.monash.edu.au/cgi-bin/cgiwrap/jwb/wwwjdic?1C
(type in a word, click Begin Search). If you turn on Auto-detect Japanese, it works.
Reporter | ||
Comment 10•24 years ago
|
||
Using Mozilla build 20010630 on Win2k, everything works (i.e. every URL
mentioned above).
Bug seems to be solved.
Interesting fact is, with build 20010629, the bug was still present, so it's
been solved somewhere between yesterday and today.
Comment 11•24 years ago
|
||
hey cool, 2001070108 win32 build worksforme too.
Reporter | ||
Comment 12•24 years ago
|
||
WFM using Mozilla 20010702 on Win2k
Status: REOPENED → RESOLVED
Closed: 24 years ago → 24 years ago
Resolution: --- → WORKSFORME
Comment 13•24 years ago
|
||
This works for me on windows 98 2001-07-02-04 but on Linux RedHat
2001-07-02-06-trunk instead of showing arabian characters it is showing question
marks. I checked the encoding and it is set UTF-8. Is this the same bug or a
different one?
Updated•6 years ago
|
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•