I wanted to do retrieve unicode representation in hex for characters. For an example, for the character €, the value should be 0x0080. I need to do this only for the ISO 8859-1, the first 256 characters of the unicode encoding. So I used casting to unsigned char in C++ to do this as follows:
(unsigned char) normal_character
Here, normal_character is of char type. This has worked so far, however is there any caveats that I should be careful of?
Thanks!
EDIT:
I took the character € as an example. It is not in the ISO 8859-1 charset.