Community

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

    Differentiate default encoding by file extension

    General Discussion
    utf8 encoding iso-8859-1 utf-8
    3
    3
    1161
    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.
    • Dario de Judicibus
      Dario de Judicibus last edited by

      HTML5 requires that files be encoded in UTF-8, so all php, html, css, and js files should be saved in that way. All the other text files, as txt, conf, ini, and so forth could be saved in ISO-8859-1. Is there a way to differentiate the default encoding by extension in Notepad++?

      Claudia Frank 1 Reply Last reply Reply Quote 2
      • Claudia Frank
        Claudia Frank @Dario de Judicibus last edited by

        @Dario-de-Judicibus

        Is there a way to differentiate the default encoding by extension in Notepad++?

        afaik, no, not with native npp functions/settings.

        A possible solution might involve scripting language plugins like python script, lua script etc. One could register a callback function when a file gets loaded/activated
        and then checks the file extension and acts accordingly.

        Cheers
        Claudia

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 1
        • SalviaSage
          SalviaSage last edited by

          Good idea. I’m also interested in this.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright © 2014 NodeBB Forums | Contributors