#35204 [NEW]: ru.php.net sends invalid charset in Content-type
| From: | php at koterov dot ru | Date: | Sat, 12 Nov 2005 22:34:39 +0000 |
| Subject: | #35204 [NEW]: ru.php.net sends invalid charset in Content-type | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-29745@lists.php.net to get a copy of this message | ||
From: php at koterov dot ru
Operating system:
PHP version: Irrelevant
PHP Bug Type: Website problem
Bug description: ru.php.net sends invalid charset in Content-type
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.
--
Edit bug report at http://bugs.php.net/?id=35204&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35204&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35204&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35204&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=35204&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35204&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35204&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35204&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35204&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35204&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35204&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=35204&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=35204&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35204&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35204&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35204&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35204&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35204&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35204&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35204&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35204&r=mysqlcfg