I'm trying something that has turned out truly annoying. I am a swede, and we have three characters that is somewhat unique (åäö ÅÄÖ). The script I am working on is network related so I need to replace these with a and o instead. That part is fairly straightforward
$A = $A.Replace('ä','a')
And so forth.
The problem turns out that if the 'script' is not saved in UTF-8 the characters can turn out in many different ways, for example:
å = å
Ã¥ = å
㥠= å
And the latest problem turned out that it doesn't even recognise the character when it looks correct.
If the script must be saved as UTF-8 it's gonna be really hard to maintain. As, as soon as someone opens the script in an editor and that editor saves the script in a different encoding the script is broken.
So my question is. Is there any best praxis and/or way to define the script to use UTF-8 in the strings?
Thanks for any suggestions.