jessnoonyes Posted December 10, 2007 Share Posted December 10, 2007 I have a php page that looks fine when opened in the editor, but when it's uploaded these little characters show up at the beginning of the <?php:  I think this has something to do with the BOM and encoding, but I don't know much about any of it. I was using Notepad but I switched the files to Notepad2, tried saving it with all the different encoding options and it's still there no matter what I do. And the weird thing is when I view the source of my page online I can see the characters there but if I open the code for the page on my server to make edits it doesn't show up. Anyone know how to fix this? Thanks! Quote Link to comment Share on other sites More sharing options...
lachild Posted December 10, 2007 Share Posted December 10, 2007 How did you upload the file? If you're using an FTP program make sure it's sending the files in Text Mode and not Binary mode. If it's set to auto, try to force the upload to text and upload the files again. I don't use Notepad2 but if uploading in text mode doesn't help, you could always copy/paste the file into notepad and resave the file. Quote Link to comment Share on other sites More sharing options...
jessnoonyes Posted December 10, 2007 Author Share Posted December 10, 2007 Thanks for the reply! I managed to fix it. It had something to do with the way it was encoded when it was saved. I used BabelPad and saved the file as UTF-8 and disabled the BOM. Fixed it completely. Thanks! Quote Link to comment 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.