BubikolRamios
01-28-2008, 02:05 AM
providing that s = BigIntiger ("60830453755921259750972507581")
String result = new String(s.toByteArray(), "UTF-8");
result becomes "\u0000蚞ȊŽ"
why is "\u0000" there, what does it mean ?
besides I'm unable to reproduce 60830453755921259750972507581 trying with:
String s = "蚞ȊŽ";
String s1 = new String(s.getBytes(),"UTF-8");
// or String s1 = new String(s.getBytes());
byte[] bytes = s.getBytes();
BigInteger m = new BigInteger(bytes);
Any thougt welcome.
String result = new String(s.toByteArray(), "UTF-8");
result becomes "\u0000蚞ȊŽ"
why is "\u0000" there, what does it mean ?
besides I'm unable to reproduce 60830453755921259750972507581 trying with:
String s = "蚞ȊŽ";
String s1 = new String(s.getBytes(),"UTF-8");
// or String s1 = new String(s.getBytes());
byte[] bytes = s.getBytes();
BigInteger m = new BigInteger(bytes);
Any thougt welcome.