Truncated jstring


    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.