Community
    • Login

    Extra characters in PHP files - UTF-8 encoding

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 1.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Gillian WallaceG
      Gillian Wallace
      last edited by

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

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @Gillian Wallace
        last edited by

        @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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors