Re: € sign encoding mix??

From: Kenneth Whistler (kenw@sybase.com)
Date: Fri Mar 17 2006 - 13:16:27 CST

  • Next message: Mark Davis: "Re: Representative glyphs for combining kannada signs"

    > I've got a problem with an encoding which seems to as a mix
    > out of UTF-8 and ISO 8859-1.

    No, you are confusing ISO 8859-1 and Windows Code Page 1252.

    >
    >
    > In the Unicode-Charts a € (Euro-sign) has the hex20 AC.
    > If I convert this into UTF-8 I get a hexE2 82 AC.

    > Now the receiving System gets this, handles this as a UTF-8
    > encoding, but can't display the character.
    > What the receiving System can display is a hexC2 80, which
    > is the UTF-8 encoded form of hex80.
    >
    > Hex80 is right if you use ISO 8859-1,

    No, 0x80 is correct for the euro sign in Windows Code Page 1252.

    You are mixing up encodings here and are running into mismatched
    conversions.

    EURO SIGN:

      Unicode U+20AC UTF-16: 0x20AC UTF-8: 0xE2 0x82 0xAC
      
      Windows Code Page 1252: 0x80
      
    --Ken



    This archive was generated by hypermail 2.1.5 : Fri Mar 17 2006 - 13:19:19 CST