How to convert Character to equivalent Hexadecimal character
807580Feb 9 2010 — edited Feb 10 2010Hi,
I have a String having UTF-8 characters. I want to replace this unicode character with its equivalent Hexadecimal character code.
Similar to this website (which I think uses javascript to do this)
http://code.cside.com/3rdpage/us/unicode/converter.html
If you put Bình Nhưỡng' and press "Characters to Dec, Hex Codes" button, it shows the result
'Bình Nhưỡng'
Exactly the same thing, I want to do through java code and vice-versa.
Please suggest any Java sample program to do this.
Thanks in advance