When using Export As SVG in 28.5 and 28.6, underscores get replaced with '_x5F_', unlike in 28.4 and earlier
When exporting to .svg, '_x5F' text is added to one of the layers, which then changes the order that things are displayed.
I do not understand how this text is now added and would like to prevent it from happening.
-
Daryl, you are quite correct!
I am rechecking it and the latest builds indeed do not behave like the team wanted...The timeline so far is like this.
28.4 an earlier
Export As SVG replaces both spaces and underscores with underscores
Save As SVG replaces spaces with underscores, and replaces underscores with _x5F_28.5
The team decides to unify the behaviors, as a part of the larger initiative to streamline SVG workflows.
Both Export As and Save As SVG ignore the difference between spaces and underscores. No _x5F_, only underscores for both.
The team receives numerous reports about broken workflows.28.6
The team decides to revert the decision.
It now SHOULD HAVE worked the same as with 28.4 and earlier, but in fact still replaces underscores with _x5F_The team is now aware and is going to review it.
Thank you so much for reporting this! -
Daryl Milford commented
Hi Egor
But we have not used any spaces, but have used underscore instead. It is where we have used an underscore, that the X5F_ has been added.
This did not happened prior to 28.6 roll out.
-
Daryl, IDs in SVGs must not contain any whitespace characters, so these get replaced with underscores when saving / exporting.
To distinguish these from real underscores, Illustrator uses their Unicode Hex Character Code — x5F.
In 28.5 the team changed ID naming schema for all SVG methods, received a lot of complains, and have to revert it back in 28.6 to the way it was before 28.5.
So now Export As method will use underscores for both spaces and underscores, but Save As method will replace underscores, just like before. -
Sure it could. All the bugs happen at some point :(
Can you please send this file over to sharewithai@adobe.com for the team to study?
Please also share the exact steps you took, the settings used, and the full specs of your OS in the email. -
Daryl Milford commented
My colleague is still on version 28.5, but I am now on 28.6. Could this bug have happened since the update?
-
Daryl Milford commented
Hello Egor,
The layer names are: 'cleared_aspects', 'colour_lights' and 'Link_buttons'. It seems to affect anything with an underscore (_) in the middle of the layer name.
I have tried toggling to 'XML ID', but this did not change.
My colleague is running the same file, but it doesn't happen with him.
Many thanks.
-
Daryl, what is the actual name of the layer in question?
Please also try to go to Preferences > Units and toggle 'Identify Objects By' from 'Object Name' to 'XML ID' — does this '_x5F_' then appear in the layer’s name?