Author Topic: IE6 + international locale causes odd chars before DOCTYPE --> odd behabiours  (Read 2860 times)

Offline webhouse

  • Newbie
  • *
  • Posts: 2
Hello

If I select a language other than English, the roundcube interface has some unwanted results when using Internet Explorer 6. For example:
- Bottom line at main message list window gets inside the message list
- In the compose new mail window, the input box has only 3-4 lines
- Some box borders are missing...

I traced the server raw response with a a packet sniffer and I noticed extrange characters before tag:

============================
HTTP/1.1 200 OK
Date: Wed, 30 May 2007 08:29:25 GMT
Server: Apache/2.0.52 (CentOS)
X-Powered-By: PHP/4.3.9
Set-Cookie: sessid=3d90154c8beef14a05956263e823408b; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Length: 2180
Connection: close
Content-Type: text/html; charset=UTF-8

......" class="bbc_link" target="_blank" rel="noopener noreferrer">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
http://www.w3.org/1999/xhtml">


==============================

Those chars are in HEX: 0d 0a 0d 0a ef bb bf ef bb bf
Internet explorer probably is ignoring DOCTYPE tag because of this and rendering the page like HTML with IE custom CSS boxes behaviour.

Mozilla Firefox works fine.

This only happens when I select a language other than English.


I am using RoundCube v0.1-rc1 with PHP 4.3.9



Offline webhouse

  • Newbie
  • *
  • Posts: 2
I found it!

$INSTALL_PATH.'program/localization/'.$sess_user_lang.'/labels.inc'
$INSTALL_PATH.'program/localization/'.$sess_user_lang.'/messages.inc'

These two files have "ef bb bf" at the beginning. These charecters idetify the file as UTF-8 but they are not necessary (I think so)

Removing these extra chars the problem was solved.