Skip to main content
Participating Frequently
Jun 7, 2021 11:19 AM UTC
Answered

Same name layers suddenly changed, and x5F added

Hi all,

 

I've been working on an Illustrator file, which is a map of Europe. Countries are grouped layers, and these countries have a subset of items (sometimes also grouped). The thing is that most subset items can appear in multiple countries, and must have the same name. See below for example. 

 

All of a sudden, Illustrator not only shows 'x5F' in between items layers, but also adds '_#' after each item layer. However, I need all the layers in their original names. This was working great before, but suddenly changed. Basically, same name layers are suddenly no longer supported and I need it. Otherwhise I have to spend way to much time on changing this manually every time I create the SVG, and developers need this for a web application. 

 

Example of current problem:

Spain

- Itemgroup

   - I_x5F_G1

- Item 

- Item

 

Portugal

- Itemgroup_2

  -  I_x5F_G1_2

- Item_2

- Item_2

 

Example of previous situation and preferred situation:

Spain

- Itemgroup

   - I_G1

- Item 

- Item

 

Portugal

- Itemgroup

  -  I_G1

- Item

- Item

 

I already changed 'Identify objects by' to 'XML ID' but that didn't change anything. 

 

Does someone know what to do? I don't know if this is a bug or not, but it seems weird that is suddenly changed without doing an Illustrator upgrade. 

This topic is closed to new replies. Start a new post to keep the conversation going.
defaultgw2ma6d8zp4dCorrect answer
Participant
Jul 17, 2023 12:51 PM UTC

I agree - I'm trying to populate an svg dynamically with data from an api that uses snake case and it's frustrating that I have to add some ugly code to transform the layer name

17 replies

lukasb61532544
Inspiring
Sep 24, 2024 12:44 PM UTC

Our icon recoloring etc. in our design system is based on the names of the layers and we suddenly (older exports work, newer ones not) have the same issue which makes newly exported icons not usable. I commented here to stay on track when this will be fixed as announced by Anubhav. A fix would be highly appreciated.

Translate
Participant
Aug 7, 2024 1:42 PM UTC

This happened to me today.
Suddenly, and for no reason, my exported paths changed name from "FRONT_XL", the correct layer name,  to "FRONT_x5F_XL"

This makes Illustrator useless for any data applications.
At the export level I am choosing to preserve layer names.

The "x5F" bug lives on in 2024.

Translate
Anubhav M
Community Manager
Community Manager
Aug 7, 2024 5:22 PM UTC

Hi @Peter Strømberg,

We understand how frustrating technical issues can be. I replicated the issue on my end and reported the details to the product team. I will update this thread as soon as we have more information.

Feel free to reach out if you have more questions or need assistance. We'd be happy to help.

Thanks,
Anubhav

Translate
Participant
Feb 11, 2022 8:34 AM UTC

If anyone is still experiencing this issue, I found that "Export" rather than "Save as" fixed this.

Translate
Participant
Jul 22, 2023 8:51 PM UTC

'Export' seems to fix the problem in the ID/Layer tag, but introduces the same issue in my Javascript tags (onclick="show('X', 'Y')" becomes onclick="show('X', 'Y')"). The apostrophes in the script come through properly using "Save As" but the unicode problem shows up in the layer tag. Have you experienced anything like this?

Translate
isaacb47986656
Participant
Aug 6, 2021 7:17 PM UTC

I am having this same problem with my SVG.
Anywhere I have an underscore in my layer name "_x5F" is added to the layer name.

"Don't use underscores" is practical advice, but quite dissapointing that Illustrator, the gold standard for creating SVG and web illustrations, would not allow you to create clean svg code with simple layer names.

Translate
defaultgw2ma6d8zp4dCorrect answer
Participant
Jul 17, 2023 12:51 PM UTC

I agree - I'm trying to populate an svg dynamically with data from an api that uses snake case and it's frustrating that I have to add some ugly code to transform the layer name

Translate
Monika Gause
Community Expert
Community Expert
Jul 17, 2023 1:01 PM UTC

@defaultgw2ma6d8zp4d  schrieb:

I agree - I'm trying to populate an svg dynamically with data from an api that uses snake case and it's frustrating that I have to add some ugly code to transform the layer name


 

Please make a feature request. Because this is a public forum 95% of people aren't even staff. Please post to https://illustrator.uservoice.com 

Translate
Mike_Gondek10189183
Community Expert
Community Expert
Jun 7, 2021 11:14 PM UTC

Don't use underscrore in layer names, use dashes.

 

underscore "_", will be saved as "_x5F_

Translate
Monika Gause
Community Expert
Community Expert
Jun 7, 2021 2:10 PM UTC

Which version and system is it?

What is your workflow? You save the file as SVG and then open it and continue working? Or do you even open the file in  a different application and then continue working on it? Which would be a bad idea, since SVG is not suitable for roundtripping in Illustrator.

Translate
Participating Frequently
Jun 7, 2021 2:44 PM UTC

It's version 25.2.3 on MacOS Mojave 10.14.6

 

The workflow is simple: I create the map in Illustrator as .ai, I save-as it as .svg, and the developer uses the .svg. 

 

When something need to be adjusted, I open the original .ai file and follow the abovementioned workflow from the beginning. The original file is also the file that previously had layers with the same names. 

Translate
Monika Gause
Community Expert
Community Expert
Jun 7, 2021 11:03 PM UTC

Can you please upload a sample file?

Translate