antman48
Posts: 7
|
| Posted: 10/06/2008, 3:10 AM |
|
I had a problem with ccs 4 php and utf file encoding. It has a problem which is caused by php not recognizing utf-8 encoded text files because a header is added in the beginning of the text file.
problem: http://bugs.php.net/bug.php?id=35038
and the error that appears is "Cannot modify header information - headers already sent by Common.php line:1"
THIS HAPPENS ALWAYS WITH LINUX PHP AND file encoding UTF-8
Solution1: Even if everything is utf-8 don't select utf-8 in "File encoding" which means you cannot have international characters in the html template files
Solution2: Get a utility which changes utf-8 file encoding to ascii and run it for all *.php *.css *.html files in the project folder
Solution 3: That problem seems to appear only while loading Common.php . So before you include Common php add a session_start
ob_start();
include_once(RelativePath . "/Common.php");
ob_end_clean();
|
 |
 |
ebweb
Posts: 2
|
| Posted: 11/12/2008, 2:01 AM |
|
Probably a UTF8 BOM mark.
Try opening common.php in notepad++.
Go to view->convert to utf-8 without BOM.
|
 |
 |
|