I have a string of text that can contain anything, and I need to send to an API using only Unicode characters from BasicLatin and Latin-1Supplement.
I’ve seen errors where people have included the backtick character for example. Is there a way that I can quickly convert a string to this format? I can use Regex to strip characters out, but I would like to be able to convert backtick to apostrophe etc.
There are a variety of functions, one for example Encoding.Convert with specified character sets. I haven’t personally indulged in it before so I couldn’t offer any further help.
So,
Some more research and I found that it wasn’t the backtick that was the issue, as that is part of Latin1. It was character 8217: ’
encoding.convert would probably work fine, but I downloaded a package from the UiPathTeam UiPathTeam.Encoding.Activities which does the job, and is probably easier to understand for anyone who looks at my process later and tries to work out what it all does