Hi,
My application reads data from a json file for translation. The french file contains accents. When string with accents are involved my application crash at runtime, when the text widget that contains accent is created.
Here the adb log:
10-13 09:33:40.173 25013-25027/com.test.jarold A/art: art/runtime/java\_vm\_ext.cc:410] JNI DETECTED ERROR IN APPLICATION: input is not valid Modified UTF-8: illegal continuation byte 0 10-13 09:33:40.173 25013-25027/com.test.jarold A/art: art/runtime/java\_vm\_ext.cc:410] string: 'Acad�' 10-13 09:33:40.173 25013-25027/com.test.jarold A/art: art/runtime/java\_vm\_ext.cc:410] in call to NewStringUTF 10-13 09:33:40.173 25013-25027/com.test.jarold A/art: art/runtime/java\_vm\_ext.cc:410] from void com.ansca.corona.JavaToNativeShim.nativeRender(long)
I understand the NewStringUTF function needs a Modified UTF-8 string but i don’T think there is a way to make a conversion of my string.
Any help would be appreciated.
thanks!