On 27/01/2019 3:08 am, Martin Buchholz wrote:
It's a pet peeve that the name GetStringUTFChars is deeply misleading - there are many "UTF"s, and this encoding is meant for use with the JVM only. The documentation should make it clearer that this is NOT the UTF-8 you might expect.
It does! GetStringUTFCharsconst char * GetStringUTFChars(JNIEnv *env, jstring string, jboolean *isCopy);
Returns a pointer to an array of bytes representing the string in modified UTF-8 encoding.
--- David