SMS made a derived function, that is the message exported in xml file format for storage.
serializer.startTag (null, "body");
serializer.text (smsInfo.getBody ());
serializer.endTag (null, "body");
When the tests are, serializer.text (smsInfo.getBody ()); This line reported a
java.lang.IllegalArgumentException: Illegal character (d83d)
This should be the content of messages on a real machine with special characters, XMLPULL can not handle.
Great God seeking Weapon.
Reply:
Seeking to come ah! ! !
Reply:
You pass under a video podcast which has a collection devoted to xml parsing
Reply:
You solved it would like to explore together
Reply:
google a bit found to be a utf-16 character issue
(This is an error when trying to write utf-16 codepoint surrogates.)
Original post address (required tech) https://code.google.com/p/android/issues/detail?id=64108
You can look at the foreigner is how to solve c: geo: https://github.com/cgeo/cgeo/commit/37c90405dff48b5996fc8103e071fcd9c54f7a21
He rewrote a XmlSerializer, addressed unusual scene
Reply:
Thank you very much ah
Reply:
Alumni, then you get this problem yet? ?
No comments:
Post a Comment