Community
    • Login

    Force UTF-8 only OPEN

    Scheduled Pinned Locked Moved General Discussion
    6 Posts 2 Posters 6.0k Views 2 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.
    • Caio Vianna Lima NettoC Offline
      Caio Vianna Lima Netto
      last edited by Caio Vianna Lima Netto

      I have been using npp for quite some time and it always worked for me: All my files are UTF-8 (without BOM), and npp always worked around opening them in UTF-8, but since I updated to Windows 10, npp will always open them as ANSI. Yes the option “use UTF-8 when opening ANSI” is checked, yet the files have plenty of UTF-8 characters, but it will simply not open as UTF-8, it always opens as ANSI.

      I simply do not have any sort of file on my computer that is ANSI (why? I use portuguese as main language, there are non ANSI characters everywhere) and I would be very much glad if files opened with UTF-8, is there any way to force it to only open as UTF-8? this is driving me nuts, I have to remember to switch encoding to UTF-8 every time I open a file or npp!

      I am pretty sure this is a bug on npp because it will still open as ANSI even if the first character is a UTF-8 like this: 🚌

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC Offline
        Claudia Frank @Caio Vianna Lima Netto
        last edited by

        @Caio-Vianna-Lima-Netto

        did you disable autodetect character encoding? (Settings->Preferences->MISC.)

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0
        • Caio Vianna Lima NettoC Offline
          Caio Vianna Lima Netto
          last edited by

          No, it is enabled.

          However it is now working.

          Apparently it only worked past a system reboot (I usually hibernate). I rebooted yesterday and now it is opening UTF-8 as it should.

          Some weird setting that was not being saved?

          1 Reply Last reply Reply Quote 0
          • Caio Vianna Lima NettoC Offline
            Caio Vianna Lima Netto
            last edited by

            Forget it, it is not working, it apparently “remembers” those I switched to UTF-8 so they re-open in UTF-8, but any file I open for the first time still opens as ANSI …

            1 Reply Last reply Reply Quote 0
            • Claudia FrankC Offline
              Claudia Frank
              last edited by

              Thought utf-8 is the default. I don’t have autodetect character encoding enabled and if I open a document, either new or existing,
              statusbar reports it being utf-8.
              Need to check the code to see if there are circumstances which prevents this to happen.

              Cheers
              Claudia

              1 Reply Last reply Reply Quote 0
              • Caio Vianna Lima NettoC Offline
                Caio Vianna Lima Netto
                last edited by

                Well, it is very unfortunate that this problem is happening. Even files that were open/saved with UTF-8 still get opened as ANSI and this is just unbearable when I have to open dozens of files over and over and remember to switch to UTF-8 or get corrupt data. I used npp for years and seems it is time to move on =/

                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