php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #34437 Wrong encoding in HTTP headers for russian version
Submitted: 2005-09-09 09:09 UTC Modified: 2005-09-20 21:24 UTC
From: bozhenov at gmail dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: WinXP
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: bozhenov at gmail dot com
New email:
PHP Version: OS:

 

 [2005-09-09 09:09 UTC] bozhenov at gmail dot com
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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-09 12:08 UTC] techtonik@php.net
Seems like it is server setup problem - not PHPDOC. Check this page - it should be ok.
http://www.php.net/manual/ru/function.fopen.php

 [2005-09-09 13:14 UTC] tony2001@php.net
Yes, it's rather old problem of this mirror.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 13 00:01:31 2025 UTC