Bug 25199 - Some text escaped as gb2312 on map.sogou.com
Summary: Some text escaped as gb2312 on map.sogou.com
Status: RESOLVED DUPLICATE of bug 9063
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL: http://map.sogou.com/
Keywords:
: 25200 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-14 20:21 PDT by xlyuan
Modified: 2009-04-15 12:04 PDT (History)
2 users (show)

See Also:


Attachments
testcase for reproducing this problem (1.40 KB, text/html)
2009-04-15 01:26 PDT, johnnyding
no flags Details
data file for this testcase (23 bytes, application/xml)
2009-04-15 01:27 PDT, johnnyding
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description xlyuan 2009-04-14 20:21:31 PDT
Build: WebKit-r42277, 2009-04-09
   OS: Windows, not test on Mac

Other Browsers:
Chromium trunk: Fail
      Firefox3: OK
           IE8: OK

Steps:
1. Launch Safari
2. Go to http://map.sogou.com/
3. Search text "查询范围"
4. Observe

Result:
Texts followed with 查询范围 escaped as %C8%AB%B9%FA (which is 全国 escaped 
as gb2312)

Expected:
Original text 全国 should display
Comment 1 Mark Rowe (bdash) 2009-04-14 21:39:50 PDT
*** Bug 25200 has been marked as a duplicate of this bug. ***
Comment 2 johnnyding 2009-04-15 01:26:05 PDT
Created attachment 29493 [details]
testcase for reproducing this problem

The problem is because webkit doesn't support load method for document object. Sogou need to use document.load to load the unescaped data. Firefox supports load method for document object. So it's OK.

I wrote a test case based on some js code extracted from http://key.go2map.com/lib/js/k4.js
Comment 3 johnnyding 2009-04-15 01:27:14 PDT
Created attachment 29494 [details]
data file for this testcase
Comment 4 johnnyding 2009-04-15 01:38:05 PDT
I believe it's a duplicated bug of https://bugs.webkit.org/show_bug.cgi?id=9063
Comment 5 Jungshik Shin 2009-04-15 12:04:23 PDT

*** This bug has been marked as a duplicate of 9063 ***