CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 [TIP] codecharge studio and utf 8

Print topic Send  topic

Author Message
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();

View profile  Send private message
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.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.