我有一个字符串:
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.
我有一个字符串:
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.