Converting in between UTF-8 UTF-16 and UTF-32

Hi,

Few days back I got some encoding problem, while solving and reading about encoding I reached at this link, which is quite simple.

http://docs.wxwidgets.org/2.9.3/overview_unicode.html#overview_unicode_encodings

There have have shown internal representation for converted Hex values in different encoding(UTF-8 <--- UTF-32 --> UTF-16).

But I could not visualize how this is done may be my Hex conversion is not good and missing some basic here.

I will be greatly appreciated if some one explain how this is done.
1. How UTF-32 having code point U+20AC is converted into 0xE2 0x82 0xAC for UTF-8 and 0x20AC into UTF-16?
2. Hex value for U+20AC?

Thanks
Last edited on
Topic archived. No new replies allowed.