XML encoding missing from SVG icons

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?

8 Likes

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

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

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

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.

1 Like