Hi, I could not find a mailing list archive so I'm posting a message i believe has been posted several times already....
The letters öäåÖÄÅ don't show up correctly, see the following text:
Veckans bästa erbjudanden från Misco.se!*
If I choose to display the page as UTF-8 in the browser it's OK. I tried to change the file: /program/include/rcube_shared.inc and set charset=UTF-8 but the browsers (firefox, IE) still don't get it. What do I need to do to make sure the browser always use UTF-8 for the roundcube pages?
Thanks a million, roundcube rocks! /Alexander
On Thursday 23 February 2006 22:50, Alexander Isacson wrote:
Hi, I could not find a mailing list archive so I'm posting a message i believe has been posted several times already....
The letters öäåÖÄÅ don't show up correctly, see the following text:
Veckans bästa erbjudanden från Misco.se!*
If I choose to display the page as UTF-8 in the browser it's OK. I tried to change the file: /program/include/rcube_shared.inc and set charset=UTF-8 but the browsers (firefox, IE) still don't get it. What do I need to do to make sure the browser always use UTF-8 for the roundcube pages?
Thanks a million, roundcube rocks! /Alexander
As a guess, you could edit the script that contens the <head> section and put in a meta tag for content-encoding
On 24 févr. 06, at 10:13, Matthew Robinson wrote:
On Thursday 23 February 2006 22:50, Alexander Isacson wrote:
[...]
The letters öäåÖÄÅ don't show up correctly, see the following text:
[...]
As a guess, you could edit the script that contens the <head> section and put in a meta tag for content-encoding
Just adding
$rcmail_config['charset'] = 'utf-8';
to your main.inc.php will add the appropriate meta tag to every output file.
Regards,
-l
Thanks for the replies.
I added it to main.inc.php and if I look at the HTML source it includes this line:
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
Buth the browsers, both Firefox and IE doesn't seem to respect it. Does it get another encoding instruction in the http header?
Any help appreciated. /Alexander
On Fri, 24 Feb 2006 16:55:26 +0100, Leonard Bouchet roundcube@alternative.ch wrote:
On 24 févr. 06, at 10:13, Matthew Robinson wrote:
On Thursday 23 February 2006 22:50, Alexander Isacson wrote:
[...]
The letters öäåÖÄÅ don't show up correctly, see the following
text:
[...]
As a guess, you could edit the script that contens the <head> section and put in a meta tag for content-encoding
Just adding
$rcmail_config['charset'] = 'utf-8';
to your main.inc.php will add the appropriate meta tag to every output file.
Regards,
-l
On 24 févr. 06, at 17:57, alexander wrote:
I added it to main.inc.php and if I look at the HTML source it includes this line:
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
Buth the browsers, both Firefox and IE doesn't seem to respect it. Does it get another encoding instruction in the http header?
You can try to replace the lines 119-120 in program/include/rcube_shared.inc with
if (!empty($this->charset)) {
header("Content-Type: text/html; charset=$this->charset");
$__page_header = '<meta http-equiv="content-type"
content="text/html; charset='.$this->charset.'" />'."\n";; }
This will overwrite the appropriate http header and should help your browser recognize the correct charset. It's not the definitive answer, though, and I'm still having trouble with some js calls that don't get the proper encoding.
Hope this helps,
Regards,
-l
Sorry for sending two mails at once.
I tried the w3.org HTML validator and I got this response:
The character encoding specified in the HTTP header (iso-8859-1) is different from the value in the <meta> element (utf-8). I will use the value from the HTTP header (iso-8859-1) for this validation.
How do I change the HTTP header encoding? Im using PHP5 and Apache2.
Thanks /Alexander
On Fri, 24 Feb 2006 17:57:44 +0100, alexander alexander@isacson.info wrote:
Thanks for the replies.
I added it to main.inc.php and if I look at the HTML source it includes this line:
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
Buth the browsers, both Firefox and IE doesn't seem to respect it. Does it get another encoding instruction in the http header?
Any help appreciated. /Alexander
On Fri, 24 Feb 2006 16:55:26 +0100, Leonard Bouchet roundcube@alternative.ch wrote:
On 24 févr. 06, at 10:13, Matthew Robinson wrote:
On Thursday 23 February 2006 22:50, Alexander Isacson wrote:
[...]
The letters öäåÖÄÅ don't show up correctly, see the following
text:
[...]
As a guess, you could edit the script that contens the <head> section and put in a meta tag for content-encoding
Just adding
$rcmail_config['charset'] = 'utf-8';
to your main.inc.php will add the appropriate meta tag to every output file.
Regards,
-l
-- Alexander Isacson
Thanks!
It work by adding:
header("Content-Type: text/html; charset=".$this->charset);
On line after line 119 (the if statement)
Excellent!
/Alexander
On Fri, 24 Feb 2006 18:01:08 +0100, Leonard Bouchet roundcube@alternative.ch wrote:
On 24 févr. 06, at 17:57, alexander wrote:
I added it to main.inc.php and if I look at the HTML source it includes this line:
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
Buth the browsers, both Firefox and IE doesn't seem to respect it. Does it get another encoding instruction in the http header?
You can try to replace the lines 119-120 in program/include/rcube_shared.inc with
if (!empty($this->charset)) { header("Content-Type: text/html; charset=$this->charset"); = '<meta http-equiv="content-type"
content="text/html; charset='.$this->charset.'" />'."\n";; }
This will overwrite the appropriate http header and should help your browser recognize the correct charset. It's not the definitive answer, though, and I'm still having trouble with some js calls that don't get the proper encoding.
Hope this helps,
Regards,
-l
Hi,
On 24 févr. 06, at 16:55, Leonard Bouchet wrote:
Just adding
$rcmail_config['charset'] = 'utf-8';
to your main.inc.php will add the appropriate meta tag to every output file.
Actually, you should put
$rcmail_config['charset'] = 'UTF-8';
(notice the uppercase) to avoid further problem with default charset selector choice and some other issues. Also note that there is some other trouble involving the charset I've not take the time to fix yet.
Regards,
-l