giba Posted December 9, 2008 Share Posted December 9, 2008 Hi, I'm running across a very strange problem and I have no idea of how to deal with it! When I include a file the output generates a whitespace for each included file! This is in fact damaging the layout of the site. In the Chrome browser it's possible to see a dot for each space, but when copied and pasted it is now a square char. Quote Link to comment https://forums.phpfreaks.com/topic/136245-white-spaces-on-head-of-document-after-include-or-require-a-file/ Share on other sites More sharing options...
wildteen88 Posted December 9, 2008 Share Posted December 9, 2008 It could be do with how you are saving your PHP files regarding the charset. Ensure you're saving your files as ASCII. Or if you're saving them as UFT-8 then save them as UTF-8 without BOM. Quote Link to comment https://forums.phpfreaks.com/topic/136245-white-spaces-on-head-of-document-after-include-or-require-a-file/#findComment-710712 Share on other sites More sharing options...
giba Posted December 9, 2008 Author Share Posted December 9, 2008 Oh, Yes dear! Thank you very much! I just converted the files to UFT8 without BOM and now it works like a charm! God bless you! Quote Link to comment https://forums.phpfreaks.com/topic/136245-white-spaces-on-head-of-document-after-include-or-require-a-file/#findComment-710716 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.