Bug 50801 - chinese charactor displayed vertically in google
Summary: chinese charactor displayed vertically in google
Status: RESOLVED WORKSFORME
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-16 11:22 UTC by LuRan
Modified: 2003-02-12 00:54 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
snapshot of the bug (75.58 KB, image/png)
2002-12-28 15:27 UTC, LuRan
Details
the bug seems to be Asia encoding only (77.74 KB, image/png)
2002-12-28 15:31 UTC, LuRan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description LuRan 2002-11-16 11:22:53 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
OS:          Linux

when search in google using chinese language display,  the first page displayed currectly, but after doing a search, the items "web" "images" "groups" and "directory" (chinese translation of course) displayed in vertical. the html source is like this:
<table border=0 cellpadding=0 cellspacing=0 width=1%><tr><td id=t0 bgcolor=#3366cc width=25% nowrap><center><font size=-1 color=#ffffff>&nbsp;<b>????</b>&nbsp;</font></center></td><td width=1 bgcolor=#808080><img width=1 height=1 alt=""></td><td width=1 bgcolor=#ffffff><img width=1 height=1 alt=""></td><td id=t1 class=q bgcolor=#efefef width=25% nowrap><center><font size=-1><a id=t1a class=q href=http://images.google.com/images?q=dfdf&hl=zh-CN&lr=&ie=UTF-8&sa=N&tab=wi >&nbsp;??&nbsp;</a></font></center></td><td width=1 bgcolor=#808080><img width=1 height=1 alt=""></td><td width=1 bgcolor=#ffffff><img width=1 height=1 alt=""></td><td id=t2 class=q bgcolor=#efefef width=25% nowrap><center><font size=-1><a id=t2a class=q href=http://groups.google.com/groups?q=dfdf&hl=zh-CN&lr=&ie=UTF-8&sa=N&tab=wg >&nbsp;????&nbsp;</a></font></center></td><td width=1 bgcolor=#808080><img width=1 height=1 alt=""></td><td width=1 bgcolor=#ffffff><img width=1 height=1 alt=""></td><td id=t3 class=q bgcolor=#efefef width=25% nowrap><center><font size=-1><a id=t3a class=q href=http://www.google.com/search?q=dfdf&hl=zh-CN&lr=&ie=UTF-8&cat=gwd/Top&sa=N&tab=wd >&nbsp;????&nbsp;</a></font></center></td>
another clue is if i force the encodings to anything but chinese GB*, Big5, everything works ok. also if i remove the <center> item, everything is ok again. kde 3.1beta2 doesn't have this bug, I'm sure the bug is in 3.1rc2 and rc3.
Comment 1 LuRan 2002-11-20 09:27:38 UTC
I tested the bug with today's cvs, and the problem still there. I have some 
more infomation about this bug: 
reproduce the bug is quite easy, see this html file: 
<html> 
<head> 
</head> 
<body> 
<table width=1%> 
<tr> 
<td> 
<center>bug</center> 
</td> 
</tr> 
</table> 
</body> 
</html> 
this file will be displayed currectly using konqueror, BUT, if you change 
"bug" to some chinese charactors, these charactor will be displayed 
vertically. if I set width=50%, or any number large enough, there is no 
problem. the <center> tag seem to be no importance, remove it makes no change, 
so I think it's because khtml cannot caculate chinese charactors' length 
currectly. hope you have enough infomation to solve it. if you need me to 
test, email me ;) 
Comment 2 LuRan 2002-11-24 03:40:13 UTC
the bug seems only happens to east asia encodings. I have tested it today: 
eucjp, iso8859-11, tis620, gb18030, gbk, gb2312, big5, iso10646-ucs-2, utf16, 
euckr, all of these encodings have this bug, utf8, jis7, sjis don't have this 
bug however. It's not a big bug, but since google is so widely used. it's a 
very anony bug. hope it can be solved before 3.1 released 
Comment 3 LuRan 2002-12-28 15:27:48 UTC
Created attachment 659 [details]
snapshot of the bug

I updated cvs today and made some snapshots of the bug, hope it will be helpful
to solve the bug. This image is the ugly webpage of google. the encoding is
"Autodetected"
Comment 4 LuRan 2002-12-28 15:31:26 UTC
Created attachment 660 [details]
the bug seems to be Asia encoding only

After I change encoding to iso8859-1, the table displayed correctly. but the
webpage is not readable :(
Comment 5 LuRan 2003-02-12 00:52:41 UTC
great! just updated CVS, the problem solved. 
Comment 6 LuRan 2003-02-12 00:54:30 UTC
mark it as resolved :P