Community
    • Login

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

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 2 Posters 3.2k 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.
    • Harishkumar PathangayH
      Harishkumar Pathangay
      last edited by

      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 Reply Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @Harishkumar Pathangay
        last edited by

        @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 Reply Last reply Reply Quote 0
        • Harishkumar PathangayH
          Harishkumar Pathangay
          last edited by

          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 Reply Last reply Reply Quote 0
          • Claudia FrankC
            Claudia Frank @Harishkumar Pathangay
            last edited by

            @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 Reply Last reply Reply Quote 0
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors