• Login
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.
  • G
    Gillian Wallace
    last edited by Mar 19, 2017, 5:41 PM

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

    C 1 Reply Last reply Mar 19, 2017, 7:42 PM Reply Quote 0
    • C
      Claudia Frank @Gillian Wallace
      last edited by Mar 19, 2017, 7:42 PM

      @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
      2 out of 2
      • First post
        2/2
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors