Extra characters in PHP files - UTF-8 encoding
-
Today I upgraded to Notepad 7.3.3, edited some PHP files and uploaded them to the web server. These worked fine on localhost, but on the web server three characters -  - appeared at the beginning of each of the two file include sections. Eventually I edited them in Notepad and saved to UTF-8, which cured the problem. But Notepad++ is already set to save in UTF-8. Is there a problem with the new version, or should I be saving the files in some other format with Notepad++?
-
could it be that you saved the file as UTF-8 with BOM?
This could explain the additional chars at the beginning.Cheers
Claudia
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login