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++?



  • @Gillian-Wallace

    could it be that you saved the file as UTF-8 with BOM?
    This could explain the additional chars at the beginning.

    Cheers
    Claudia


Log in to reply