Thierry Posted February 23, 2008 Share Posted February 23, 2008 When I do more then a single require() (also tried include, same deal) I get a strange character "" printed to the page in IE7 (Firefox works fine), which causes a linebreak to occur. Since I may end up using more then a single include/require in my pages I really need to find a fix for this, is it some setting in php.ini? I checked all the stuff I was including and that didnt cause it (merely including a blank piece of text twice causes it). What the requires include doesnt seem to matter, if I do require("page with AA in it") and then require("page with BB in it"), I get "AABB" in my source code in IE7. Note that the first require/include doesnt get the character to show at the end, it seems to show at the start of the second include. Any ideas what could be causing this? Link to comment https://forums.phpfreaks.com/topic/92649-multiple-includes-cause-strange-character-to-appear-in-ie7/ Share on other sites More sharing options...
PFMaBiSmAd Posted February 23, 2008 Share Posted February 23, 2008 Check to make sure that your files are being saved in ANSI/ASCII mode instead of UTF-8 or Unicode. The strange character is probably the BOM (Byte Order Mark) at the start of the file. Link to comment https://forums.phpfreaks.com/topic/92649-multiple-includes-cause-strange-character-to-appear-in-ie7/#findComment-474813 Share on other sites More sharing options...
Thierry Posted February 23, 2008 Author Share Posted February 23, 2008 Yup, you're correct, I had notepad set on UTF-8, its fixed now, thx. Link to comment https://forums.phpfreaks.com/topic/92649-multiple-includes-cause-strange-character-to-appear-in-ie7/#findComment-474819 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.