ID: 22778 Updated by: [EMAIL PROTECTED] Reported By: meteorlet at sjtu dot edu dot cn -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: Win2000 Server PHP Version: 4.3.1 New Comment:
Duplicate of bug #22108 Please add your further comments at that report. Previous Comments: ------------------------------------------------------------------------ [2003-03-18 21:44:14] meteorlet at sjtu dot edu dot cn If I want to include a PHP file of UTF-8 coding,the control characters EF BB BF will apear in the response web.For example: // const.php UTF-8 textformat <?php define("SJTU","Shanghai Jiaotong University"); ?> // test.php <html> <body> <?php include("const.php");//the result is a non-print character: ?> </body> </html> But when I save const.php as UNICODE,the result is: <html> <body> ? ? p h p d e f i n e ( " S J T U " , " S h a n g h a i J i a o t o n g U n i v e r s i t y " ) ; ? > </body> </html> Only in the case of ANSI coding,include() can work well.PHP can work well with ANSI,UTF-8,UNICODE,but why doesn't Include() support UTF-8,UNICODE?Is it a bug? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22778&edit=1