Le 11/07/12 14:15, Philippe Verdy a écrit :
2012/7/11 Jean-François Colson <[email protected] <mailto:[email protected]>>

    If your document only contains

    <?php
    header("location:http://unicode.org";);
    ?>

    but you save it with a BOM, the BOM will be sent and you’ll get an
    error message like

    Warning: Cannot modify header information - headers already sent
    by (output started at
    /customers/0/1/f/colson.eu/httpd.www/test.php:1
    <http://colson.eu/httpd.www/test.php:1>) in
    /customers/0/1/f/colson.eu/httpd.www/test.php
    <http://colson.eu/httpd.www/test.php> on line 2

    (tested with Firefox 13.0 and Google Chrome 20.0.1132.47 on Ubuntu
    12.04.)


Most probably a bug to signal to PHP. That leading BOM in the PHP source file should be silently ignored. But the file is probably not read as being effectively encoded as UTF-8. Did you try to indicate the source encoding with a commmand line flag when starting PHP ?
I didn’t start PHP myself. It was started by my host and I have no control on the configuration since that would affect all their customers hosted on the same server.

Reply via email to