Page 1 of 1

Old Architect rule editor replaces dashes with hyphens

Posted: Wed Nov 02, 2022 2:14 pm
by Elessar
Hello everybody!

I have noticed a strange behavior of the old rule editor: if I try to use object names with dashes (–, code 150), it works fine for the first time. But if I reopen it, the rule editor replaces them with hyphens (-, code 45). When I try to change something (eg add a comment) and save, it shows an "element not found" error:
dashes.png
dashes.png (14.43 KiB) Viewed 1605 times

It looks like the version or OS does not matter - tested this on 3 different environments.
Can anybody confirm the same behavior? Does anybody have a solution for this?

Re: Old Architect rule editor replaces dashes with hyphens

Posted: Wed Nov 02, 2022 3:20 pm
by MarenC
Hi,

I presume the issue is with the Dash being at the end of the name, if it was stuck somewhere in the middle, such as This - is Dash it would be ok?

Maren

Re: Old Architect rule editor replaces dashes with hyphens

Posted: Wed Nov 02, 2022 3:47 pm
by Elessar
Yes, this happens no matter where the dash is located

Re: Old Architect rule editor replaces dashes with hyphens

Posted: Wed Nov 02, 2022 5:08 pm
by gtonkin
The dash in the first screenshot is an Em Dash - MS Word is generally to blame and converts dashes to em dashes via auto correct as you type.
Someone then copies these to Excel or elsewhere then into TM1 and you have an issue.
Em Dash is Unicode Character “—” (U+2014)

Edit: you may need to check the file on disk to see what is being saved back - could also be a character set issue - rich text but not sure why it would work the first time.

Re: Old Architect rule editor replaces dashes with hyphens

Posted: Thu Nov 03, 2022 2:21 pm
by Elessar
gtonkin wrote: Wed Nov 02, 2022 5:08 pm The dash in the first screenshot is an Em Dash - MS Word is generally to blame and converts dashes to em dashes via auto correct as you type.
Someone then copies these to Excel or elsewhere then into TM1 and you have an issue.
Yes Sherlock, it was exactly like you've described :)
The rux file, equally to rule editor, contains em-dash on start, and hyphen after changing the rule.