php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46393 No support for php files with UTF8Y codepage
Submitted: 2008-10-26 13:31 UTC Modified: 2008-10-26 15:55 UTC
Votes:3
Avg. Score:4.3 ± 0.9
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: grandlegion at mail dot ru Assigned:
Status: Not a bug Package: Output Control
PHP Version: 5.2.6 OS: Windows XP
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: grandlegion at mail dot ru
New email:
PHP Version: OS:

 

 [2008-10-26 13:31 UTC] grandlegion at mail dot ru
Description:
------------
First explain difference between UTF8 and UTF8Y - this codepages idential, except that UTF8Y files have 3 byte signature code EFBBBF - wich speedup text processor detection of UTF8 codepage. In most text processors, if u save file with UTF8 codepage, actualy u get it with UTF8Y (example Windows Notepad, CodeGear RAD Studio, Microsoft Visual Studio). So the problem starts from here!

PHP text processor does not recognise UTF8Y signature, and outputs this 3 bytes as HTML content. As result we have problem using funcions that requires headers changed (header, start_session, setcookie, e.t.c.) - Always error "Headers already sent at line 1". It seems that PHP does not ignore SIG bytes, as it should.

This make programmers realy hard to detect the error problem. There is no good editors under windows - wich can save files in UTF8 (not UTF8Y). As result many users cant use UTF8Y files as PHP scripts

Thanks for attension. With respect from Russian programmer For.Rest (nick)

-------------------------------------------------------------------
Same text in Russian
-------------------------------------------------------------------

??? ?????? ??????? ??????? ????? UTF8 ? UTF8Y - ??? ????????? ?????????, ?? ??????????? ????, ??? UTF8Y ????? ????? 3 ???????? ????????? ? ?????? ????? EFBBBF - ??????? ???????? ??????????? UTF8 ?????????? ????????????. ?? ?????? ????????? ??????????? ??? ?????????? ????? ? ????????? UTF8, ? ?????????? ?????????? UTF8Y (????????? Windows Notepad, CodeGear RAD Studio, Microsoft Visual Studio). ????????? ?????????? ?????? ? ?????!

????????? ????????? PHP ?? ?????????? ????????? UTF8Y, ? ??????? ?? ??? 3 ????? HTML ???????????. ? ?????????? ????? ?????? ????????? ????????????? ??????? ????????? ????????? ????????? ???????? (header, start_session, setcookie, ? ?.?.) - ?????? ????? ?????? "Headers already sent at line 1". ???????????? ????????, ??? PHP ?? ?????????? ????? ?????????, ??? ??????.

??? ??? ??????? ??????? ????????? ????????????? ? ?????? ??????? ??????. ??? Windows ?? ?????????? ??????? ?????????? ??????, ??????? ????? ????????? ????? ? UTF8 (?? UTF8Y). ??? ?????????, ????????? ????????????? ?? ????? ???????????? UTF8Y ????? ? ???? PHP ????????

??????? ?? ????????. ? ????????? ?? ??????, ??????????? For.Rest



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-26 15:55 UTC] jani@php.net
Please search the bug database BEFORE you sent new reports about same 
issue. Hint: search for BOM.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 11:01:30 2024 UTC