#34437 [NEW]: Wrong encoding in HTTP headers for russian version
[email protected] ("bozhenov at gmail dot com")
| Newsgroups | php.doc.web |
|---|---|
| Message-ID | <[email protected]> |
From: bozhenov at gmail dot com Operating system: WinXP PHP version: Irrelevant PHP Bug Type: DocWeb problem Bug description: Wrong encoding in HTTP headers for russian version Description: ------------ The web server sends Content-Type: text/html; charset=windows-1251 in headers when browsing russian translation of php docs, but in fact they are in UTF-8. So you need manually change encoding on every page you visit. This is the opposite to bug #32166 - there was a complain about utf-8 in header but win-1251 in html. Reproduce code: --------------- Open http://ru.php.net/manual/ru/function.fopen.php Expected result: ---------------- The content of the page is sent in UTF-8 format, so the header should be Content-Type: text/html; charset=UTF-8 Actual result: -------------- Server sends wrong header (charset=windows-1251), so the browser is confused and you need to manually switch to UTF-8 encoding in browser menu. -- Edit bug report at http://bugs.php.net/?id=34437&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34437&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34437&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34437&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34437&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34437&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34437&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34437&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34437&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34437&r=support Expected behavior: http://bugs.php.net/fix.php?id=34437&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34437&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34437&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34437&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34437&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34437&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34437&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34437&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34437&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34437&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34437&r=mysqlcfg