Byte order Mark (BOM, UTF-8, Header)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The Problem:

If I edit a php file with Microsoft Notepad and save with UTF-8 encoding
there is a problem with headers.

example:
<?php
header("Content-type: text/xml");
echo "<somexml/>";
?>

PHP tells me, that the header is already set, because of the (invisible)
BOM http://de.wikipedia.org/wiki/Byte_Order_Mark

I teach php and 50% of my students have this problems if they use UTF-8
encoding (depends on editor).

My Question:
------------
Is PHP UTF-8 ready?
Is there an other reason to stick on iso-8859-1 or ascii beside the BOM?
Is it a PHP bug, or is it a bug of the editor software?
 
thanks

Bernhard

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux