Jump to content
Dave Vector

SVG File open error - The fie could not be parsed

Recommended Posts


I have generated an SVG file using a Blender add-on, which is scripted in Python. 

When I try to open the file in Affinity Designer I get the following error:

"Failed to open file"

"The file could not be parsed."


The file opens fine in the latest Google Chrome and Adobe Illustrator CS6


I found a solution to fix the error:

Change the line:

<?xml version='1.0' encoding='ascii'?>


<?xml version='1.0' encoding='UTF-8'?>


This issue is the same as the one reported on the "Bugs on Mac" forum:

Here is a sample file:





Share this post

Link to post
Share on other sites

I'm just wondering if there has been any update on this. I encountered the same problem trying to import SVG Freestyle line art from Blender and after a bit of Googling eventually came across this post. BTW the fix above still works but the number of exports/imports I had to do made it a little tedious.  It was an easier task to modify the the Freestyle export addon to set the encoding to utf-8 by default. This strikes me as an easy fix to the AD importer so I'm not sure why this wasn't resolved by now. Is there something more difficult about ASCII encoded SVG files that I'm missing? It is not a problem for me moving forward but a more informative error message would certainly help here.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

Please note the Annual Company Closure section in the Terms of Use. These are the Terms of Use you will be asked to agree to if you join the forum. | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.