From: meteorlet at sjtu dot edu dot cn Operating system: Win2000 Server PHP version: 4.3.1 PHP Bug Type: Scripting Engine problem Bug description: include() doesn't work well under UTF-8 or UNICODE
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 bug report at http://bugs.php.net/?id=22778&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22778&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22778&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22778&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22778&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22778&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22778&r=support Expected behavior: http://bugs.php.net/fix.php?id=22778&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22778&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22778&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22778&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22778&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22778&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22778&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22778&r=gnused