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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 01:01:30 2024 UTC