Behdad Esfahbod added the comment:

> Replacing all control characters by entities before trying to parse the Plist 
> XML would likely be the best way forward. 

That wouldn't work.  Control characters are disallowed in XML's character set, 
so they are invalid even if input as entities.

Unfortunately this causes a lot of trouble for clients [0], because it means 
that XML cannot represent the full Unicode repertoire.  I'm curious about 
alternates.  Perhaps the expat module can be extended to allow recovering from 
this if the client chooses to...

[0] eg. https://github.com/behdad/fonttools/issues/249

----------
nosy: +Behdad.Esfahbod

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10733>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to