1

I have a string:

l="\u00d0\u00a2\u00d0\u00b0".

I want to convert it into binary data. I have tried this:

int c = Integer.parseInt(l,16);
System.out.println(Integer.toHexString(c));

But i get the error:

" Exception in thread "main" java.lang.NumberFormatException: For input string" exception. 
frhd
  • 9,396
  • 5
  • 24
  • 41
  • Everything in a computer is binary data! :- ) – ericbn Apr 20 '15 at 14:10
  • 1
    Have you seen this question and its answers? http://stackoverflow.com/questions/11145681/how-to-convert-a-string-with-unicode-encoding-to-a-string-of-letters – Jay Apr 20 '15 at 14:14

0 Answers0