标签: java hex binary-data unicode-escapes
我有一个字符串:
l="\u00d0\u00a2\u00d0\u00b0".
我想将其转换为二进制数据。我试过这个:
int c = Integer.parseInt(l,16); System.out.println(Integer.toHexString(c));
但我得到错误:
" Exception in thread "main" java.lang.NumberFormatException: For input string" exception.