Community
    • 登入

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

    已排程 已置頂 已鎖定 已移動 Help wanted · · · – – – · · ·
    3 貼文 2 Posters 2.1k 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • Grzegorz HaydukG
      Grzegorz Hayduk
      最後由 編輯

      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 條回覆 最後回覆 回覆 引用 0
      • Scott SumnerS
        Scott Sumner @Grzegorz Hayduk
        最後由 編輯

        @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 條回覆 最後回覆 回覆 引用 0
        • Grzegorz HaydukG
          Grzegorz Hayduk
          最後由 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 條回覆 最後回覆 回覆 引用 0
          • 第一個貼文
            最後的貼文
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors