ID: 25434 Updated by: [EMAIL PROTECTED] Reported By: JanKarnik at atlas dot cz -Status: Open +Status: Bogus Bug Type: *General Issues Operating System: Win2K+iis PHP Version: 4.3.3 New Comment:
Most likely the included file contains UTF-8 BOM marker at the beginning of it. See also bug #22108. Not a bug in PHP => bogus report. Previous Comments: ------------------------------------------------------------------------ [2003-09-08 09:05:37] JanKarnik at atlas dot cz Description: ------------ Include command with UTF-8 file returns undefined character. Take a UTF-8 encoded php file with "include" or "require" command. Try include a UTF-8 encoded text. On the begining of the above include you'll get returned an undefined character, shown in some browsers as a rectangle. This character is used in windows to show that text has been UTF-8 encoded, but in all common editors (notepad...) is invisible. Reproduce code: --------------- bug.php: <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head> <body> <?php <include"./text.txt"> ?><body></html> text.txt: SOME UTF-8 ENCODED TEXT SOME UTF-8 ENCODED TEXT SOME UTF-8 ENCODED TEXT Expected result: ---------------- An unexpected chracters are returned Actual result: -------------- ?<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head> <body> ?SOME UTF-8 ENCODED TEXT SOME UTF-8 ENCODED TEXT SOME UTF-8 ENCODED TEXT <body></html> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25434&edit=1