#22108 [Fbk]: php doesn't ignore the utf-8 BOM
From: tularis@php.net Date: Fri, 07 Feb 2003 16:42:17 +0000 Subject: #22108 [Fbk]: php doesn't ignore the utf-8 BOM References: 1 Groups: php.bugs Request: Send a blank email to php-bugs+get-32398@lists.php.net to get a copy of this message
ID: 22108 Updated by: tularis@php.net Reported By: bugzilla@jellycan.com Status: Feedback Bug Type: Output Control Operating System: windows 2000 PHP Version: 4.2.3 New Comment: sniper, imagine someone would want to echo some text in eg. French. In that case, if you'd save it as ascii, you would get corrupted output. So instead you'd have to save as utf-8. Which seems to cause problems (or so bugzilla@jellycan.com tells us) Previous Comments: ------------------------------------------------------------------------ [2003-02-07 08:58:21] sniper@php.net And why an earth would you save PHP files in any other format than ascii? ------------------------------------------------------------------------ [2003-02-07 08:53:10] derick@php.net What is a BOM ? Derick ------------------------------------------------------------------------ [2003-02-07 08:46:36] bugzilla@jellycan.com Problem: When a php file is saved in utf-8 format with the UTF-8 BOM as the first three bytes of the file (EF BB BF), PHP doesn't ignore these bytes when loading and compiling the file, but instead considers them output coming prior to the <?php. This causes incorrect display of the page and failure of any http header output. It does this even when the internal character format is set in php.ini to be utf-8. Desired outcome: PHP recognizes the utf-8 bom and disregards it. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22108&edit=1
Thread (47 messages)
- #22108 [Opn->Fbk]: php doesn't ignore the utf-8 BOM
- #22108 [Fbk]: php doesn't ignore the utf-8 BOM
- #22108 [Fbk]: php doesn't ignore the utf-8 BOM
- #22108 [Fbk->Bgs]: php doesn't ignore the utf-8 BOM
- #22108 [Bgs->Opn]: php doesn't ignore the utf-8 BOM
- #22108 [Opn]: php doesn't ignore the utf-8 BOM
- #22108 [Opn]: php doesn't ignore the utf-8 BOM
- #22108 [Opn]: php doesn't ignore the utf-8 BOM
- #22108 [Opn->Bgs]: php doesn't ignore the utf-8 BOM
- #22108 [Bgs->Opn]: php doesn't ignore the utf-8 BOM
- #22108 [Opn]: php doesn't ignore the utf-8 BOM
- #22108 [Opn]: php doesn't ignore the utf-8 BOM
- #22108 [Com]: php doesn't ignore the utf-8 BOM
- #22108 [Opn]: php doesn't ignore the utf-8 BOM
- #22108 [Com]: php doesn't ignore the utf-8 BOM
- #22108 [Com]: php doesn't ignore the utf-8 BOM
- #22108 [Opn->WFx]: php doesn't ignore the utf-8 BOM
- #22108 [WFx->Asn]: php doesn't ignore the utf-8 BOM
- #22108 [Asn]: php doesn't ignore the utf-8 BOM
- #22108 [Asn]: php doesn't ignore the utf-8 BOM
- #22108 [Asn]: php doesn't ignore the utf-8 BOM
- #22108 [Asn]: php doesn't ignore the utf-8 BOM
- #22108 [Com]: php doesn't ignore the utf-8 BOM
- #22108 [Com]: php doesn't ignore the utf-8 BOM
- #22108 [Com]: php doesn't ignore the utf-8 BOM
- #22108 [Com]: php doesn't ignore the utf-8 BOM
- #22108 [Com]: php doesn't ignore the utf-8 BOM
- #22108 [Com]: php doesn't ignore the utf-8 BOM
- #22108 [Asn]: php doesn't ignore the utf-8 BOM
- #22108 [Com]: php doesn't ignore the utf-8 BOM
- #22108 [Com]: php doesn't ignore the utf-8 BOM
- #22108 [Com]: php doesn't ignore the utf-8 BOM
- #22108 [Com]: php doesn't ignore the utf-8 BOM
- #22108 [Com]: php doesn't ignore the utf-8 BOM
- #22108 [Com]: php doesn't ignore the utf-8 BOM
- #22108 [Com]: php doesn't ignore the utf-8 BOM
- #22108 [Asn]: php doesn't ignore the utf-8 BOM
- #22108 [Com]: php doesn't ignore the utf-8 BOM
- #22108 [Com]: php doesn't ignore the utf-8 BOM
- #22108 [Com]: php doesn't ignore the utf-8 BOM
- #22108 [Asn->WFx]: php doesn't ignore the utf-8 BOM
- Req #22108 [Com]: php doesn't ignore the utf-8 BOM
- Req #22108 [Com]: php doesn't ignore the utf-8 BOM
- Req #22108 [Com]: php doesn't ignore the utf-8 BOM
- Req #22108 [Com]: php doesn't ignore the utf-8 BOM
- Req #22108 [Com]: php doesn't ignore the utf-8 BOM
| « previous | php.bugs (#32398) | next » |
|---|