The hex value is supposed to change as the encoding specifies how the bits would be arranged.
Hex value plus the encoding is able to give the exact text. xE5B882 as UTF-8 is same as x025E as UTF-16 when converted to text.
Move the hex value to a string type variable directly does give you a string that has hex value, not char representation.
Message was edited by: Manish Kumar