Jump to content

Recommended Posts

Posted

Hello, I'm having a problem with .svg file exported from Blender 4.3 (freestyle exported as .svg). The message says: The file type is not supported. But Adobe Illustrator can open it just fine. I'm including the file in attachment if anyone wants to check it.

0005.svg

Posted

The file is in UTF-8 encoding but wrongly marked as being ascii (all other apps that I tried ignore this erroneous marking and successfully open the file). So change the first line of the file to read: 

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

 

Posted

If you have many files to process and you're using Windows here's a Powershell script which will help
Place the script in a folder with the svg's, run the script and corrected files will be written to a sub-folder named utf8, the originals are unchanged
Once you're happy that it works you can delete the pause statement from the script

ToUTF8.ps1

Microsoft Windows 11 Home, Intel i7-1360P 2.20 GHz, 32 GB RAM, 1TB SSD, Intel Iris Xe
Affinity Photo - 24/05/20, Affinity Publisher - 06/12/20, KTM Superduke - 27/09/10

Posted
4 hours ago, lacerto said:

The file is in UTF-8 encoding but wrongly marked as being ascii (all other apps that I tried ignore this erroneous marking and successfully open the file). So change the first line of the file to read: 

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

 

Thank you for the reply. That worked for sure. It's quite an interesting problem.

Posted
2 hours ago, David in Яuislip said:

If you have many files to process and you're using Windows here's a Powershell script which will help
Place the script in a folder with the svg's, run the script and corrected files will be written to a sub-folder named utf8, the originals are unchanged
Once you're happy that it works you can delete the pause statement from the script

ToUTF8.ps1 837 B · 1 download

Thank you for the effort to explain, it is appreciated.

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.

Guest
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.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | 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.