Skip to main content
Question

XML encoding missing from SVG icons


Hadi_Hassan

I am trying to export SVG icons from Figma export, upon export the <?xml version="1.0" encoding="UTF-8"?> is missing from the exported file.
How can this issue be fixed?

Marian2
  • February 11, 2022

@Hadi_Hassan Did you manage to find a workaround? We’re dealing with the same problem. Thanks in advance for your response


Lauren_Fairhall

We are also having the same issue, if there are any fixes please let me know


Nick_Battjes

I am having the same issue. It is making the SVG’s not display in our CMS.


COG_Branding

Hi, this post is old but hopefully this can help some people. We created a script to fix this that prepends the missing line at the start of each SVG file. You’ll need to copy this script in the folder of all the icons/SVGs you’ve exported, then run the script.

GitHub

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings