php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46881 if file contains BOM , persian characters corrupts, replaces with QuestionMarks
Submitted: 2008-12-16 14:44 UTC Modified: 2008-12-21 13:01 UTC
From: jhoseinii at gmail dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.2CVS-2008-12-16 (snap) OS: Linux-CentOS 5.2 i686
Private report: No CVE-ID: None
 [2008-12-16 14:44 UTC] jhoseinii at gmail dot com
Description:
------------
Hi,

some of windows editors adds 3 BOM character in start of files for unicode 
but in my server if php-server finds BOM in start of files, it will read php files in ISO encoding instead of UTF
and it will put out some question marks instead of persian characters
cause of the persian characters are not supported on iso encoding method

is there any plugin or module to fix this issue on server?
I insist to fix this issue on server, and I want my server to waive BOM completely, but i cant



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-12-21 13:01 UTC] jani@php.net
Please use search before submitting another report about same issue.
Hint: Google + "site:bugs.php.net bom"
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 08 03:01:32 2025 UTC