Community
    • Login

    Sel: in status bar doesn't count non-ASCII characters

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 2.4k 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.
    • Grzegorz HaydukG Offline
      Grzegorz Hayduk
      last edited by

      Hello,
      I’ve got problem with Notepad++ (also newest 7.3) which shows different values in Col: and Sel: characters count with word wrap off.
      I can see that it’s OK if there are only ASCII characters, but selecting any polish special letters (ą, ę, ł, ó, …) is not counted in Sel: … field.
      I use it to limit my text to fit into some length-limited input fields, so the Sel: is really useful, but only for English texts.
      Greetings,
      Grzegorz

      Scott SumnerS 1 Reply Last reply Reply Quote 0
      • Scott SumnerS Offline
        Scott Sumner @Grzegorz Hayduk
        last edited by

        @Grzegorz-Hayduk

        Can you elaborate more about what your encoding settings are when you see this behavior? When I try to duplicate your results I don’t see a problem with the counting, but maybe we’ve got things configured differently…

        1 Reply Last reply Reply Quote 0
        • Grzegorz HaydukG Offline
          Grzegorz Hayduk
          last edited by Grzegorz Hayduk

          Thanks for your reply.
          I can see that this error occurs when the encoding is set to ANSI.
          When I type something in UTF-8 and then switch to ANSI, I can see that single “ó” in UTF-8 is encoded as two bytes in ANSI, but only first byte is counted in “Sel:”.
          Similar case is when a file is created as ANSI and there are only legal (correct) ANSI characters - diacritic characters (ą, ę, ł, ó, …) in the file - then they are not counted in “Sel:”.
          Can you duplicate the bug now?

          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