Forum Stats

  • 3,827,682 Users
  • 2,260,803 Discussions
  • 7,897,336 Comments

Discussions

Truncated jstring

3751237
3751237 Member Posts: 1
edited Jul 27, 2018 8:16AM in Java Native Interface (JNI)

Similar to:

Truncated jstring under JRE 1.6 with NewStringUTF

I have a dll written in C++ that creates an xml formatted string and then converts it using env->NewStringUTF it all works fine until there is this symbol in the xml - '§' in hex it is c2 a7. For each occurrence of this symbol, one is truncated from the end of the jstring. I'm using jre1.8.0_windows_x86.

This discussion has been closed.