Community
    • Login

    Differentiate default encoding by file extension

    Scheduled Pinned Locked Moved General Discussion
    utf8 encodingiso-8859-1utf-8
    3 Posts 3 Posters 1.7k Views 3 Watching
    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 JudicibusD Offline
      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 FrankC 1 Reply Last reply Reply Quote 2
      • Claudia FrankC Offline
        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
        • SalviaSageS Offline
          SalviaSage
          last edited by

          Good idea. I’m also interested in this.

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors