Managed string to hex

Hi,

I've got a managed string that contains chinese characters from a file. The file was UTF-16LE encoded.
I'm trying to convert the managed string into hex so that each chinese character is represented by hex.

I've been trawling the net, but I can't see anything that will help my out, any suggestions?

Example string:

String^ value = "合营"

so would need the hex for both characters
I think all encoders have the GetBytes() method. Use that.
Topic archived. No new replies allowed.