Page 1 of 1

There is a problem with templates in Firefox

Posted: Wed Apr 11, 2007 9:43 am
by SADtg
Hi there!

I've just installed s9y on http://blog.sadtg.ru and there is a problem with appearance in Mozilla Firefox. Templates looks perfectly in IE and Opera, but in FF it looks like there is no template at all. I have no clue where the problem may be...

Re: There is a problem with templates in Firefox

Posted: Wed Apr 11, 2007 10:57 am
by garvinhicking
Hi!

That's strange, your base webpage says it's using "UTF-8" charset, but when I request your CSS stylesheet, it uses win-1251 as the charset. I believe that Firefox might be confused by this. Do you know how this happens?

Which charset have oyu set in the serendipity configuration? UTF-8 or native? You are using russuan language files, I assume?

Regards,
Garvin

Re: There is a problem with templates in Firefox

Posted: Wed Apr 11, 2007 8:08 pm
by SADtg
garvinhicking wrote:Hi!

That's strange, your base webpage says it's using "UTF-8" charset, but when I request your CSS stylesheet, it uses win-1251 as the charset. I believe that Firefox might be confused by this. Do you know how this happens?

Which charset have oyu set in the serendipity configuration? UTF-8 or native? You are using russuan language files, I assume?

Regards,
Garvin
Yes, there is a russian language. win-1251 is a default server encoding, and I have no idea why it doesn't reinforced by heading() in index.php. In a serendipity configuration set UTF-8.
I've tried to set native encoding (change it in lang files to win-1251), but problem with ff remains.

Problem resolved

Posted: Wed Apr 11, 2007 11:37 pm
by SADtg
Thank you for idea, the source of error really was in the css encoding.
Server automatically adds "charset=windows-1251" declaration and FF can't deal with it on UTF-8 page.
Resolution was to replace

Code: Select all

header('Content-type: text/css');
in line 60 of serendipity.css.php file with

Code: Select all

header('Content-type: text/css; charset='. LANG_CHARSET);

Re: Problem resolved

Posted: Thu Apr 12, 2007 11:22 am
by garvinhicking
Hi!

Ah, well caught. I didn't know we didn't already add this charset at that place. I just committed your fix!

Best regards,
Garvin