the HTML file has an encoding like windows-1254 and I have UTF-8, is it possible that it’s leading a run-time error?
Can I change the character encoding on the C++ side?
Can I convert char* to a byte array?
what are the possible solutions for that?
the HTML file has an encoding like windows-1254 and I have UTF-8, is it
Share
Please take a look here
http://java.sun.com/docs/books/jni/html/other.html
(section “8.2 Writing Internationalized Code”)
The function you might be interested in converting a native encoded string to a jstring (and eventually passing it to java-side, is JNU_NewStringNative
cheers,