XML : Parsing an XML ressource containing UTF-16 surrogate pairs

i have an xml ressource file with emojis surrogate pairs like this :

      <Key          value="\uD83D\uDE0A"/>      <Key          value="\uD83D\uDE00"/>    

but when i try to parse i i'm getting this error:

11-26 18:31:55.986: A/art(8275): art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: input is not valid Modified UTF-8: illegal start byte 0xf0

How can i read this ?

No comments:

Post a Comment