Re: Charset declaration in HTML

From: Jean-François Colson <jf_at_colson.eu>
Date: Wed, 11 Jul 2012 14:36:59 +0200

Le 11/07/12 14:15, Philippe Verdy a écrit :
> 2012/7/11 Jean-François Colson <jf_at_colson.eu <mailto:jf_at_colson.eu>>
>
> 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.
Received on Wed Jul 11 2012 - 07:39:06 CDT

This archive was generated by hypermail 2.2.0 : Wed Jul 11 2012 - 07:39:06 CDT