Skip to Main Content

Java HotSpot Virtual Machine

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!

how to convert utf8 jstring to ansi string?

843829Apr 17 2003 — edited Apr 17 2003
please does anybody know how to convert jstring
that i get in native method to ansi string in order
to use it in a call to Win32?
i tried to GetStringChars(-->Unicode)
and than with WideCharToMultiByte(-->ansi)
convert them to ansi, but an exception always occurs...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 15 2003
Added on Apr 17 2003
1 comment
295 views