the easiest is to just use UTF-8 throughout your code. alternatively,
you can use NewString, which takes an array of jchar instead.
> I tried to use jbyteArray instead of jstring, but it is not working
> too.
i think this might be the easiest route if you're stuck with legacy
code using ISO-8859-2 (or any other non-UTF-8 encoding) --- pass a
jbyteArray back up to managed code, and then use the appropriate
String constructor on the managed side:
http://developer.android.com/reference/java/lang/String.html#String(byte[],
java.lang.String)
you can of course use JNI to invoke that constructor yourself and pass
the resulting jstring back up to managed code, but that's more native
code, which is a thing to be avoided.