nazraxo
(Tim Schunk)
July 1, 2019, 3:25pm
1
Hey Guys,
i am trying to eliminate the registered trademark symbol ® from a string, however it does not work.
I have tried the following options:
trim(product.Element("name").Value.ToString.Replace("\u00AE",""))
and
trim(product.Element("name").Value.ToString.Replace("®",""))
But the symbol does not get recognized.
When I tried to print the symbol instead of replacing it to test the code in the first case I just got \u00AE as output and in the second case I did not get any output at all.
myString = myString.Replace("®","")
works for me. What type is product? It appears the issue is with how you are using the returned string.
1 Like
nazraxo
(Tim Schunk)
July 1, 2019, 3:45pm
3
Hi Daniel,
you are right facepalm
I did not assign the result to a new string but tried pushing it to the queue directly.
Thanks for your quick help!
1 Like
system
(system)
Closed
July 4, 2019, 3:45pm
4
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.