dsl101
unread,Oct 5, 2011, 7:45:36 AM10/5/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to open...@googlegroups.com
Finally managed to create a test case - not sure if this is a known issue or not. I have a vague memory of seeing mention of it somewhere, but can't find it in the groups.
Basically, it comes down to Unicode is Not Your Friend. The error can easily be triggered by copying some unicode text from, e.g. Word or another unicode-aware application into a StickyNote. The text needs to contain unicode characters, obviously, and other non-valid XML characters (e.g. '&') to trigger the error.
What seems to happen is that if unicode characters are in the string, it isn't correctly encoded when the XML is written out to the c3z file. In our example, the univode characters were being encoded (although they aren't displayed properly in OQ), but the ampersand isn't encoded. I guess the encoder object is taking a different path if it finds unicode.
I'll put it on the google code page, but I'm happy to have a go at fixing it if someone can tell me which object (fails to) handle the XML encoding... I did try to follow the code through, but got lost :)
Thanks,
David.