Hello.

I have noticed that you are using GetStringUTFChars in the java jni part.
But this function don't convert any non us ascii 7 bit char in a normal c/c++ char, it will converted to a utf-8 char.
When using a windows system you can use non us ascii char in a filename.

You can you the jni function GetStringChars to get the string as unicode chars, but then it must be converted to 8bit chars on the nativ side.

Bye.