|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-03-19 04:22 UTC] moriyoshi@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 24 03:00:02 2025 UTC |
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?