php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35204 ru.php.net sends invalid charset in Content-type
Submitted: 2005-11-12 23:34 UTC Modified: 2007-06-07 18:15 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: php at koterov dot ru Assigned:
Status: Closed Package: Website problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: php at koterov dot ru
New email:
PHP Version: OS:

 

 [2005-11-12 23:34 UTC] php at koterov dot ru
Description:
------------
When I visit http://ru.php.net/date, for example, page goes in invalid charset. Real charset is UTF-8, BUT header Contrent-type reports windows-1251:

+++GET 1+++
GET /date HTTP/1.1
Host: ru.php.net
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru-RU; rv:1.7.12) Gecko/20050919 Firefox/1.0.7
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: ru-ru,ru;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Cookie: LAST_SEARCH=quickref%2Cthrow; LAST_LANG=ru; COUNTRY=RUS%2C85.30.227.191
Pragma: no-cache
Cache-Control: no-cache
Connection: keep-alive
Browser reload detected...

+++RESP 1+++
HTTP/1.1 200 OK
Date: Sat, 12 Nov 2005 22:20:03 GMT
Server: Apache/1.3.33 (Unix) PHP/4.4.1 rus/PL30.20
X-Powered-By: PHP/4.4.1
Content-language: ru
Status: 200 OK
Last-Modified: Sat, 12 Nov 2005 00:27:02 GMT
Vary: Cookie, accept-charset
Transfer-Encoding: chunked
Content-Type: text/html; charset=windows-1251

This bug lasts already more than year, and nobody corrects it. Strange! In Russia, when we try to visit http://php.net/data, redirect performed to ru.php.net (time to time), and there is a lot of broken page there. Could you please contact ru.php.net webmasters?

There is the same bug, but it has the status "bogus" and I cannot open it nor add a comment.
http://bugs.php.net/bug.php?id=34437

Reproduce code:
---------------
Visit http://ru.php.net/date

Expected result:
----------------
Page in UTF-8, Content-type contains charset UTF-8.

Actual result:
--------------
Page in UTF-8, Content-type contains charset windows-1251.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-14 11:09 UTC] dmytton@php.net
What system environment are you using? I can't replicate the problem on Windows with Firefox/IE.
 [2005-11-14 12:16 UTC] php at koterov dot ru
See HTTP headers below.
Reproducible in IE and FF, all versions.
URL: http://ru.php.net/date
Switch to Russian in http://ru.php.net/my.php before.
 [2007-06-07 18:15 UTC] bjori@php.net
This mirror was disabled long time ago and the mirror maintainer asked to upgrade his configuration.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Jun 17 23:00:01 2026 UTC