Comment 19 for bug 291416

Revision history for this message
su_v (suv-lp) wrote :

@theAdib - see my comment before yours: there are no original PDF files attached here except the one from Wolf, and that one no longer produced the same error after the commit of the patch which was attached in bug #369861:

Please read Khaled Hosny's comments there what the patch does address and what not, comments #8, #11, ...
«… preliminary patch that uses g_utf16_to_utf8() to do the conversion, this ensures the returned UTF-8 is always valid (it returns NULL otherwise), this fixes surrogate pairs issue and makes sure the resulting SVG contains valid characters, with caveat that glyphs with no proper Unicode (unencoded glyphs) will be just omitted, …»
<https://bugs.launchpad.net/inkscape/+bug/369861/comments/11>

AFAIU, after revision 9812 - which committed the patch from K. Hosny - a character which had been incorrectly read from the PDF file, is silently dropped and not written to the SVG file, thus avoiding the encoding error on reopening the SVG file.