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> <b>????</b> </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 > ?? </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 > ???? </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 > ???? </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.
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 ;)
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
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"
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 :(
great! just updated CVS, the problem solved.
mark it as resolved :P