Community
    • Login

    It changes the encoding every time I open it.txt file

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 4 Posters 134 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.
    • Maxim FoxM
      Maxim Fox
      last edited by

      How to disable automatic encoding change when opening .txt file?

      CoisesC 1 Reply Last reply Reply Quote 0
      • CoisesC
        Coises @Maxim Fox
        last edited by

        @Maxim-Fox said in It changes the encoding every time I open it.txt file:

        How to disable automatic encoding change when opening .txt file?

        If the problem is specifically that Notepad++ is opening files as UTF-8 when you expected them to be in your system code page (aka ANSI), look at Settings | Preferences… | New Document and see if you have UTF-8 selected and the Apply to opened ANSI files box checked. If you do, try unchecking that box.

        Aside from that, I don’t think there is a way to stop Notepad++ from attempting to determine the encoding of a file. Windows does not store the encoding of a file with the file. No program can know, for sure, what encoding was used for an arbitrary text file. Notepad++ tries to figure out what it must be, but I don’t believe it offers any way to intervene in that process other than to select a different encoding one you have loaded the file.

        1 Reply Last reply Reply Quote 1
        • xomxX
          xomx
          last edited by

          npp-Pref-MISC-AutoDetectCharEnc.png

          Alan KilbornA 1 Reply Last reply Reply Quote 2
          • Alan KilbornA
            Alan Kilborn @xomx
            last edited by Alan Kilborn

            @xomx

            The problem with uncheckmarking Auto detect character encoding is that most times you want Notepad++ to autodetect the encoding.
            It’s only when it does it wrongly that you don’t want it to. :-)

            1 Reply Last reply Reply Quote 2
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors