Mandu Posted December 22, 2024 Posted December 22, 2024 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 Quote
lacerto Posted December 22, 2024 Posted December 22, 2024 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'?> Mandu and Alfred 2 Quote
David in Яuislip Posted December 22, 2024 Posted December 22, 2024 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 Mandu 1 Quote 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
Mandu Posted December 22, 2024 Author Posted December 22, 2024 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. lacerto 1 Quote
Mandu Posted December 22, 2024 Author Posted December 22, 2024 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. David in Яuislip 1 Quote
Recommended Posts
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.