Comment 6 for bug 499257

Revision history for this message
Tomas Pospisek (tpo-deb) wrote :

JazzyNico wrote:

> I think that your original AI file was ISO encoded. That's the reason why you've been
> able to open and modify it once.
> The issue is not that Inkscape doesn't open the file, but that it changes its encoding.
> Inkscape fails to open the file because in
> <?xpacket begin="ÿ" id="W5M0MpCehiHzreSzNTczkc9d"?> (line 2588), ÿ is
> not UTF-8 encoded.
>
> Could you please confirm (or attach the original AI exported file)?

I started with this AI file:

   http://commons.wikimedia.org/wiki/File:Ruby_logo.svg

which claims that it's UTF-8 encoded. The line that gives an error above looks like this in it:

  <?xpacket begin="<U+FEFF>" id="W5M0MpCehiHzreSzNTczkc9d"?>

"<U+FEFF>" the byte sequence of that is 0xef 0xbb 0xbf.

Inkscape will transform that into a single 0xff byte (which is represented as "ÿ" when reported as error on the console) when saving the file.