Closed Bug 440264 Opened 17 years ago Closed 15 years ago

Error Encoding of URL Query String when changing the innerHTML from javascript function

Categories

(Firefox :: General, defect)

3.0 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: my_fly_bird, Unassigned)

References

()

Details

(Whiteboard: [CLOSEME 2010-10-01])

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0 in http://cache.tianya.cn/publicforum/content/free/1/1306777.shtml Error Encoding of URL Query String when changing the innerHTML from javascript function, code: String.prototype.ReWriteIdwriterKey=function() { var _old,_new,_s; _s=this; /*...*/ return(_s); } var pContentDiv=document.getElementById("pContentDiv"); pContentDiv.innerHTML=pContentDiv.innerHTML.ReWriteIdwriterKey(); The url page is gb2312 encoding, so the Encoding of URL Query String in the page should be gb2312, but after execute code above, the Encoding of URL Query String is utf8, which is wrong, cause the server can't decoding right. Firefox 3.0 and 2.0.0.14 both have this problem, but Firefox 2.0.0.12 is ok. Reproducible: Always Steps to Reproduce: 1.visit http://cache.tianya.cn/publicforum/content/free/1/1306777.shtml and other similar tianya pages 2.click the author url include chinese char in two or more floor(becuase one floor's author url encoded by web server) 3. Actual Results: Encoding of URL Query String is utf8(one chinese char = %..%..%..) Expected Results: Encoding of URL Query String is gb2312(one chinese char = %..%..)
Reporter, are you still seeing this issue with Firefox 3.6.9 or later in safe mode? If not, please close. These links can help you in your testing. http://support.mozilla.com/kb/Safe+Mode http://support.mozilla.com/kb/Managing+profiles
Whiteboard: [CLOSEME 2010-10-01]
Version: unspecified → 3.0 Branch
No reply, INCOMPLETE. Please retest with Firefox 3.6.10 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
Closed: 15 years ago
Resolution: --- → INCOMPLETE
it fixed in the newest firefox 4.0b7pre build 20100924.
the website change the code, so this bug cannot Reproduce.
You need to log in before you can comment on or make changes to this bug.