Home arrow static arrow Java Programming [Archive] - How to convert Hex String in UTF Format?
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - How to convert Hex String in UTF Format?
This topic has 1 reply on 1 page.

Posts:106
Registered: 9/2/00
How to convert Hex String in UTF Format?  
Aug 4, 2004 12:01 AM



 
Hi Guys,
Let me rephrase the earlier quesiton. my bad. how do i convert Hex String in UTF8 Format?
thanks
 

Posts:11,200
Registered: 7/22/99
Re: How to convert Hex String in UTF Format?  
Aug 4, 2004 1:27 AM (reply 1 of 1)



 
Something like this:
String hex = "48656c6c6f21";byte[] data = new BigInteger(hex, 16).toByteArray();String blah = new String(data, "UTF-8");
 
This topic has 1 reply on 1 page.