Skip to main content
Participating Frequently
Jul 31, 2024 1:16 PM UTC
Question

Layer names with non-alphanumeric characters converted to hex code when exporting SVGs

When exporting or saving as SVG, the non-alphanumeric characters in a layer name get converted to their hex code. For example, hashtag(#) becomes _x23_ and underscore(_) becomes _x5F_. This happens when the layer name is set as the id or the data-name. This issue seems to only happen in v28.6 of Illustrator, not v28.5.

 

    This topic is closed to new replies. Start a new post to keep the conversation going.

    10 replies

    Participating Frequently
    Jul 31, 2024 4:43 PM UTC

    Just noticed that any spaces in the layer names are being replaced by underscores in the export.

    Translate
    Anubhav M
    Community Manager
    Community Manager
    Aug 2, 2024 6:31 PM UTC

    Hello @Automated216896213io0,

    Sorry to hear about your experience. Would you mind sharing a public link to a sample AI and SVG file from both versions of Illustrator after uploading it to Dropbox/Google Drive/etc., as well as screenshots of the settings used, so we can investigate this further?


    Looking forward to hearing from you.

     

    Thanks,

    Anubhav

    Translate
    Participating Frequently
    Aug 2, 2024 9:40 PM UTC

    Steps to reproduce:
    1) open AI file
    2) go to File > Export > Export As...
    3) select SVG (*.SVG) as the Save as type

    4) click Export

    5) use these settings

    I'm not able to share a public link but I've attached sample svgs to this reply. The ai files were auto-removed for some reason. I can email the ai files to you if that's doable.

    Translate