Community
    • Login

    File encoding detection issue

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 3 Posters 1.6k 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.
    • АртёмА
      Артём
      last edited by

      Notepad++ has problems with detection of correct encoding of files. Usually I store text files using Windows-1251 (cyrillic) encoding. But often for files that contain not only latin charaters the application select Macintosh encoding. It is annoying to select the correct one.

      Can you fix it or do you like apples so much? :)

      PeterJonesP Alan KilbornA 2 Replies Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Артём
        last edited by

        @Артём ,

        Unfortunately, there is no algorithm in the universe that will always correctly guess the encoding for all those ancient Windows-125x encodings. That’s the whole reason that Unicode, and the Unicode encodings like UTF-8 and UTF-16, exist: to get us beyond the 1980s technology of having dozens or hundreds of encodings with no way to externally tell without interpreting the bytes as each individual encoding and see if the bytes “make sense” when doing that coding. But if you’re stuck dealing with the ancient technology of old-fashioned encodings, then you’re stuck, and the superiority of UTF-* encodings is irrelevant.

        If your files are almost always in the same encoding. you probably can turn off the MISC > Autodetect Character Encoding, which some people have found works better when their files are usually the same encoding.

        If you need a way to quickly change the encoding to Windows-1251, you can use Shortcut Mapper on the main tab, filter for 1251, then MODIFY the shortcut for Windows-1251 to something you can remember. Then you can just hit that keystroke to change the encoding if it loads a file using the wrong encoding.

        1 Reply Last reply Reply Quote 1
        • Alan KilbornA
          Alan Kilborn @Артём
          last edited by

          @Артём

          Keep an eye on this THREAD. Hopefully I am soon finishing up the script I’ve worked on to “solve” that very similar issue.

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