Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Extra characters in PHP files - UTF-8 encoding

    General Discussion
    2
    2
    1432
    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 Wallace
      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 Frank 1 Reply Last reply Reply Quote 0
      • Claudia Frank
        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
        Copyright © 2014 NodeBB Forums | Contributors