Closed GoogleCodeExporter closed 9 years ago
this should be fixed now. It was a problem with the string encoding function in
the native code that ignored the offset value.
Original comment by shai.almog
on 25 Jan 2015 at 1:05
No, still not working. It is different, but still not correct.
Did you use the test case I included to test your fix?
String str = "This1234 is a test string";
byte[] bytes = str.getBytes();
String str2 = new String(bytes, 4, 4);
With your latest code str2 now contains "st s". It looks like it is picking up
the string at offset 16, it should be 4.
The expected result is "1234".
Original comment by mwarn...@readerware.com
on 26 Jan 2015 at 7:39
OK, now it should be fixed.
Original comment by shai.almog
on 27 Jan 2015 at 1:16
Yes, it is working now.
Thanks
Original comment by mwarn...@readerware.com
on 27 Jan 2015 at 2:52
Original issue reported on code.google.com by
mwarn...@readerware.com
on 22 Jan 2015 at 4:40Attachments: