I want to send Hangul (Korean symbols using UTF) text from C to JAVA.
But JAVA gets incorrect results
Example:
JNIEXPORT jstring JNICALL Java_get_1term
(JNIEnv *env, jobject, jint termInd)
{
const char *str = "음뮤원음직음원샘";
return (env)->NewStringUTF(str);
}
but in that case JAVA got incorrect string.
I couldn’t find answer to my question in other posts, if there is same question please give me link to them
try with this (taken and adapted from here):
EDIT As correctly noted by @Kerrek SB this is a Windows only solution