sixthday Posted January 9, 2008 Share Posted January 9, 2008 Hi, I have to change a site I made and I want to include a footer with the include command. It's placed in my root dir on the server. <?include($_SERVER['DOCUMENT_ROOT']."/foo.bar");?> The content (only a few lines in html) is appearing as it should, but with an unwanted addition: The two chars "»¿" are appearing right in front of the included text.... If I do not transform spectial characters (i.e german ä,Ü an so on) into html code (ä) these chars also appear wired although I set charset=ISO-8859-1 in my main dcument (calling the include function)... Hope you can help me out! THX Quote Link to comment https://forums.phpfreaks.com/topic/85221-solved-strange-chars-using-_serverdocument_root/ Share on other sites More sharing options...
PFMaBiSmAd Posted January 9, 2008 Share Posted January 9, 2008 The file being included was saved by your editor (I would guess MS Notepad) as a UTF-8 encoded file. The strange characters are the BOM (byte order marker.) Save your file as a ANSI/ASCII file. Quote Link to comment https://forums.phpfreaks.com/topic/85221-solved-strange-chars-using-_serverdocument_root/#findComment-434769 Share on other sites More sharing options...
sixthday Posted January 9, 2008 Author Share Posted January 9, 2008 Ohh yes, this worked! Actually I edited the document in dreamweaver... I saved it with the editor for now beacause I don't know how to change the settings in dreamwiever (I've found the option in the preferences but there is no ASCII or ANSI I could select, maybe you can give me a hint Anyway thanks! Quote Link to comment https://forums.phpfreaks.com/topic/85221-solved-strange-chars-using-_serverdocument_root/#findComment-434931 Share on other sites More sharing options...
PFMaBiSmAd Posted January 9, 2008 Share Posted January 9, 2008 I don't know what the name would be in DW, perhaps just "text" or "no encoding". Basically you want anything but UTF-8 or Unicode. Quote Link to comment https://forums.phpfreaks.com/topic/85221-solved-strange-chars-using-_serverdocument_root/#findComment-434965 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.