Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Modified UTF-8 conversion for NewStringUTF

439412Sep 26 2011 — edited Sep 26 2011
Hello,

I came across this documentation where NewStringUTF expects its string input to be encoded in modified-UTF8.

http://download.oracle.com/javase/1.5.0/docs/guide/jni/spec/functions.html

However, i don't see the application's code doing the conversion from c character array to modified UTF-8, for example, the '\0' character is passed as it is.
I'm assuming that the virtual machine is doing the conversion, if so, which code (file) is responsible for it?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 24 2011
Added on Sep 26 2011
4 comments
808 views