Let's not forget that it's modified UTF-8[1] you get back from JNI lest you think that you'll be able to use the buffer as-is.
[1] https://docs.oracle.com/javase/10/docs/specs/jni/types.html#...
[1] https://docs.oracle.com/javase/10/docs/specs/jni/types.html#...
No comments yet.