in reply to Re^2: UTF-8 to ISO-8859-1 conversion of euro symbol
in thread UTF-8 to ISO-8859-1 conversion of euro symbol

As mirod pointed out I was typing crap - it is (confusingly) iso-8859-15 you should be using. Are you sure that whatever it is that you are using to look at the output is actually using the correct character set to display the euro character from that encoding? There is also a windows cp1252 that includes the character but with a different numeric code.

/J\

  • Comment on Re^3: UTF-8 to ISO-8859-1 conversion of euro symbol

Replies are listed 'Best First'.
Re^4: UTF-8 to ISO-8859-1 conversion of euro symbol
by Anonymous Monk on Mar 03, 2005 at 14:41 UTC
    I am not 100% certain that the encoding at the other end is an ISO-8859 variant. It does correctly display other characters encoded in ISO-8859, however, such as ø.

    So, if I have 8364 in utf-8, that's transformed to 164 in ISO-8859-15. 0164 in Windows CP1252 is what I'm seeing...so I will see if switching the encoding helps.

    Thanks for all the help!

Re^4: UTF-8 to ISO-8859-1 conversion of euro symbol
by Anonymous Monk on Mar 03, 2005 at 14:58 UTC
    Working on the theory that I might need cp1252 encoding, I modified my original code to convert to charset cp1252. The result is whitespace.