Community
    • 登入

    pound character is using double byte C2A3 instead of single byte A3

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

      hi,
      I am trying to create ISO8859-1 encoded file with letter pound sign and yen sign.
      Issue is, if I look in HEX Edoitor Plugin, it is saving X’C2A3’ and X’C2A5’ instead of simply X’A3’ and X’A5’ in Hex Editor.
      Should it not use Single Byte? instead of Double Byte values?

      Thanks,
      Harish Pathangay

      Claudia FrankC 1 條回覆 最後回覆 回覆 引用 0
      • Claudia FrankC
        Claudia Frank @Harishkumar Pathangay
        最後由 編輯

        @Harishkumar-Pathangay

        you are correct - it should be a3 and a5. The c2a3 is the utf-8 version.
        I assume it happens in the view only and not in the file itself.
        Did you check this?

        Cheers
        Claudia

        1 條回覆 最後回覆 回覆 引用 0
        • Harishkumar PathangayH
          Harishkumar Pathangay
          最後由 編輯

          Hi,
          Yes. You are correct. It is in view as HEX Editor only displaying as Unicode.
          After saving it is correctly displaying as A3 only. In HEX Editor Mode, why it is converting to Unicode? It kind of confuses me.
          Thanks,
          Harish Pathangay

          Claudia FrankC 1 條回覆 最後回覆 回覆 引用 0
          • Claudia FrankC
            Claudia Frank @Harishkumar Pathangay
            最後由 編輯

            @Harishkumar-Pathangay

            In HEX Editor Mode, why it is converting to Unicode?

            this plugin was written back in 2009 and at this time npp didn’t support
            encodings like today, only the standard ansi, utf-8 … were available.

            Cheers
            Claudia

            1 條回覆 最後回覆 回覆 引用 0
            • 第一個貼文
              最後的貼文
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors