Bug 93144 - russian language detection broken
Summary: russian language detection broken
Status: RESOLVED WORKSFORME
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-12 05:56 UTC by Wizard Vandal
Modified: 2006-08-31 02:13 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wizard Vandal 2004-11-12 05:56:49 UTC
Version:            (using KDE KDE 3.3.1)
Installed from:    Debian testing/unstable Packages

Still broken (kde 3.3.1 konq 3.3.1 debian sid).
This bug (and my commit too) was marked as resolved, but still broken.
Example html:
-----------------------------
<html><head><title>Мы</title><meta http-equiv="Content-Type" content="text/html; charset=koi8-r"></head>
<body bgcolor=#333399 text=white
 link=#ccccff alink=#ccccff vlink=#ccccff marginheight=0 marginwidth=0
 topmargin=0 leftmargin=0 rightmargin=0><div align=center><center>
<table border=0 width=100% bgcolor=#000000> 
<tr><td><h1>МЫ</h1></td></tr>
</table><table border=0 width=100%><tr><td valign=top align=left width=200><table border=0 width=200 align=left>
<tr><td bgcolor=#666699>:: Сайты</td></tr>
<tr><td bgcolor=#666666><a href=register.php>Добавить</a></td></tr>
<tr><td bgcolor=#666666><a href=index.php>Редактировать</a></td></tr>
<tr><td bgcolor=#666666><a href=http://www.v-d.ru/we.html>Старый список "МЫ"</a></td></tr>
<tr><td bgcolor=#666666><a href=http://lib.v-d.ru/f/>Форум</a></td></tr>
<tr><td bgcolor=#666666><a href=http://www.v-d.ru/>www.v-d.ru</a></td></tr>
</table></td><td valign=top align=left><h2><u>Рейтинг: Ноябрь 2004</u></h2><table border=0 cellpadding=2><tr bgcolor=#666699><td colspan=3>Cайты: 1 ... 10 из 18 :: Страницы:  1 <a href=/sites/list.php?page=1>2</a></td></tr><tr bgcolor=#666666 height=100><td width=100 height=100><a href=http://10.101.101.88/><img src=http://10.101.101.88/img/banner.jpg border=0 width=100 height=100></a></td><td width=400 valign=top><a href=http://10.101.101.88/><b>RagnaLand Дальнегорск</b></a><br><i>Сайт сервера RagnaLand Дальнегорск</i><br>Вебмастер: Alissa</td><td width=100 valign=top align=center>Посетителей:<br> 46<br>Просмотров:<br> 7407</td></tr><tr bgcolor=#333366 height=100><td height=100 width=100 valign=top align=center>Посетителей:<br> 40<br>Просмотров:<br> 262</td><td width=400 valign=top><a href=http://www.v-d.ru/news/index.php><b>Impy Page</b></a><br><i>Ежедневные новости со всего света...</i><br>Вебмастер: Impy</td><td width=100><a href=http://www.v-d.ru/news/index.php><img src=http://www.v-d.ru/impy/baner.jpg border=0 width=100 height=100></a></td></tr><tr bgcolor=#666666 height=100><td width=100 height=100><a href=http://www.v-d.ru/impy/impy/index.html><img src=http://www.v-d.ru/impy/page.gif border=0 width=100 height=100></a></td><td width=400 valign=top><a href=http://www.v-d.ru/impy/impy/index.html><b>Impy Page</b></a><br><i>Игры, OS, Железо, всего понемногу, а в целом море инфы...</i><br>Вебмастер: Impy</td><td width=100 valign=top align=center>Посетителей:<br> 28<br>Просмотров:<br> 71</td></tr><tr bgcolor=#333366 height=100><td height=100 width=100 valign=top align=center>Посетителей:<br> 25<br>Просмотров:<br> 84</td><td width=400 valign=top><a href=http://www.v-d.ru/kron/dmx/index.htm><b>DMX</b></a><br><i>Все о DMX'e</i><br>Вебмастер: Desp17</td><td width=100><a href=http://www.v-d.ru/kron/dmx/index.htm><img src=http://www.v-d.ru/kron/dmx/dmx_b3.JPG border=0 width=100 height=100></a></td></tr><tr bgcolor=#666666 height=100><td width=100 height=100>&nbsp;</td><td width=400 valign=top><a href=http://www.v-d.ru/inferno/><b>Wizard&#039;s Page</b></a><br><i>Свалка софта + немного "Наутилуса".</i><br>Вебмастер: Wizard</td><td width=100 valign=top align=center>Посетителей:<br> 17<br>Просмотров:<br> 37</td></tr><tr bgcolor=#333366 height=100><td height=100 width=100 valign=top align=center>Посетителей:<br> 15<br>Просмотров:<br> 30</td><td width=400 valign=top><a href=http://www.v-d.ru/slavka/index.php><b>Славкина домашняя страничка</b></a><br><i>Славкина домашняя страничка</i><br>Вебмастер: FireStarter</td><td width=100><a href=http://www.v-d.ru/slavka/index.php><img src=http://www.v-d.ru/slavka/logo/slogo.gif border=0 width=100 height=100></a></td></tr><tr bgcolor=#666666 height=100><td width=100 height=100><a href=http://lib.v-d.ru/><img src=http://lib.v-d.ru/img/jsilver.gif border=0 width=100 height=100></a></td><td width=400 valign=top><a href=http://lib.v-d.ru/><b>Книжная полка</b></a><br><i>Отборная русская и зарубежная фантастика,  <br> документация по PHP и Хроники ВиДал'а</i><br>Вебмастер: JSilver</td><td width=100 valign=top align=center>Посетителей:<br> 14<br>Просмотров:<br> 31</td></tr><tr bgcolor=#333366 height=100><td height=100 width=100 valign=top align=center>Посетителей:<br> 11<br>Просмотров:<br> 22</td><td width=400 valign=top><a href=http://v-d.ru/simuka/><b>Web studia</b></a><br><i>Всё что нужно для создания своей, качественной и запоминающейся, странички... Статьи по Веб дизайну, Скрипты поиска, гостевой книги, статистики и др. </i><br>Вебмастер: Simuka</td><td width=100><a href=http://v-d.ru/simuka/><img src=http://www.v-d.ru/simuka/baner.gif border=0 width=100 height=100></a></td></tr><tr bgcolor=#666666 height=100><td width=100 height=100><a href=http://10.16.1.101/fox/><img src=http://10.16.1.101/fox/pingvin.jpg border=0 width=100 height=100></a></td><td width=400 valign=top><a href=http://10.16.1.101/fox/><b>Linux в Дальнегорске</b></a><br><i>Портал проекта "Linux in Dalnegorsk" <br> Обновлён 11.11.2004</i><br>Вебмастер: Linux in Dalnegors Team</td><td width=100 valign=top align=center>Посетителей:<br> 10<br>Просмотров:<br> 20</td></tr><tr bgcolor=#333366 height=100><td height=100 width=100 valign=top align=center>Посетителей:<br> 9<br>Просмотров:<br> 18</td><td width=400 valign=top><a href=http://www.v-d.ru/unrealc/><b>Unreal Challenge</b></a><br><i>Проект, посвящённый играм на Unreal Engine нового поколения. Карты, моды, околоанриловские новости</i><br>Вебмастер: alexx</td><td width=100><a href=http://www.v-d.ru/unrealc/><img src=http://www.v-d.ru/unrealc/banner_uc.jpg border=0 width=100 height=100></a></td></tr></td></tr></table></body></html>
-----------------------------
And it do not switch encodings in "view document in embedded text editor", but if select view document source - all ok...
Comment 1 Philip Rodrigues 2006-08-31 00:16:08 UTC
the html specifies koi8, but it's really encoded as utf8. This could be an issue to do with bugzilla, but without an exact description of the problem, and a URL to use as a testcase, it's hard to do anything with this bug. Please reopen it if you can provide those two things. Thanks
Comment 2 Wizard Vandal 2006-08-31 00:27:35 UTC
You are wrong!!!
This page is exactly a koi8-r encoded.
Comment 3 Alex 2006-08-31 02:13:10 UTC
Excuse me for my English (The text is written by means of the computer translator)

There are 2 variants of this problem:
1. The file is read through web-server.
Has by practical consideration found out, that the probability of correct display directly depends on variable "AddDefaultCharset koi8-r" in apache2 configuration file. As it is detect konq for me with a riddle, but it is the fact.

2. The file is read from file system.
For me too does not work, provided that the coding inside of a file differs locale.

2Philip Rodrigues:
 Excuse for that that has confused you in IRC (then I opened this file written down on my file system in the same coding as locale)