Jump to content

Improper charset!


Recommended Posts

Sorry for english text, but the forum charset is broken, so I am not sure that any russian message will pass.

 

Well,... actually the comment is exactly about charset. vBulletin generates the following line in the <head> section:

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

 

I believe that the real cyrillic charset in this forum kinda differs from it, so can you fix this and make it generate the line with actual charset? Otherwise it makes any browser unable to display the russian text on this page properly (I checked checked with latest Opera, Firefox and even "links"). Thanks in advance!

Link to comment
Share on other sites

  • Administrators

Please check the CP panel then options and set by default Russian.

 

Пожалйста посмотри в панели управления своего профиля опции и установи по умолчанию русский язык.

Link to comment
Share on other sites

Please check the CP panel then options and set by default Russian.

Everything is in russian, of course.

 

But it cannot help if the page explicitly lies about the charset of its contents.

 

I've pointed you to the problematic place already, but to clarify and explain it I just rechecked and downloaded the front page of the forum via "wget -S http://forum.lockon.ru", and seen the following:

-----

C:>wget -S http://forum.lockon.ru

--00:54:12-- http://forum.lockon.ru/

=> `index.html'

Resolving forum.lockon.ru... 217.16.16.131, 217.16.16.111

Connecting to forum.lockon.ru[217.16.16.131]:80... connected.

HTTP request sent, awaiting response...

1 HTTP/1.0 200 OK

2 Date: Fri, 18 Mar 2005 21:54:12 GMT

3 Server: Apache/1.3.33 (Unix)

4 Cache-Control: max-age=0

5 Expires: 0

6 Set-Cookie: bblastvisit=1111182852; expires=Sat, 18-Mar-2006 21:54:12 GMT; path=/

7 Set-Cookie: bblastactivity=1111182755; expires=Sat, 18-Mar-2006 21:54:12 GMT; path=/

8 Cache-Control: private, post-check=0, pre-check=0, max-age=0

9 Pragma: no-cache

10 Content-Length: 30641

11 Connection: close

12 Content-Type: text/html; charset=ISO-8859-1

 

100%[====================================================================================>] 30,641 33.89K/s

 

00:54:13 (33.89 KB/s) - `index.html' saved [30641/30641]

-----

 

So, looks like the first place the charset is to be fixed is HTTP headers: server explicitly tells the user that the page is in ISO-8859-1 charset.

After that I looked into the downloaded page and seen the following:

 

-----

<head>

<!-- no cache headers -->

<meta http-equiv="Pragma" content="no-cache" />

<meta http-equiv="Expires" content="-1" />

<meta http-equiv="Cache-Control" content="no-cache" />

<!-- end no cache headers -->

<title>LockOn.ru Forums - powered by vBulletin</title>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

<meta name="generator" content="vBulletin 3.0.7" />

-----

The second place is HTML source: the page explicitly tells the user that it is in ISO-8859-1 charset.

 

But both HTTP headers and HTML source lie! I've looked into the page contents and found out that it is in usual "windows-1251" charset.

 

Unfortunately I don't have vBulletin installed anywhere, but I believe that if you just fix these two place, so that both server will tell truth about the contents charset, and the page itself will tell truth as well, it will work perfectly.

 

If you need any more detailed help and assistance, feel free to knock into my ICQ (see profile).

Link to comment
Share on other sites

I just checked forum.sukhoi.ru - it is running vBulletin as well, but it has

---

12 Content-Type: text/html; charset=WINDOWS-1251

---

in its HTTP headers, and

---

<title>AviaForum - powered by vBulletin</title>

<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />

<meta name="generator" content="vBulletin 3.0.1" />

---

in its contents. There is no problems with displaying it on my side neither under Opera, nor under Firefox.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...