Streaming live at 10am (PST)

SVG's failing when containing non-ASCII character


#1

SVG’s containing non-ASCII character won’t preview and don’t load on page load.

Steps to reproduce

  1. Edit an SVG in code and enter a non-ASCII character (in my case, å, ä, ö) in an ID
  2. Upload to site either in Assets or as a part of a collection

Workaround
Remove non-ASCII character from file

The tested files were all in UTF-8, so it’s probably an issue on the decoding end, since “å”, “ä”, and “ö” are a part of UTF-8.


#2

I tried to replicate this, but wasn’t able… can you share the svg file that doesn’t work?

Here’s mine with å in ids: https://svg-special-char-in-id.webflow.io/


#3

I did change the <title> as well, maybe that’s what solved my issue?


#4

The <title> tag inside the svg file? I was still able to upload one like that to my test site.

If you have an SVG that doesn’t work now, could you post it here or DM me the file?


#5

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.