I am using a hash table to store some names and ids in Greek characters.
$hsNames = @{}
$hsNameID = 1
$name = "Νικος"
$hsNames.Add($name, $hsNameID)
$hsNameID++
$name = "Νίκος"
$hsNames.Add($name, $hsNameID)
$hsNames
The output of the above is:
Name Value ---- ----- Νικος 1 Νίκος 2
This means that two keys were created for the same name when there is a greek accent in one of them. Now I do not want this to happen, I need to have only one key with the 1st ID (1)- the behavior of utf8_unicode_ci in MySQL. I guess I need to somehow tell powershell to use the Unicode Collation Algorithm (http://www.unicode.org/reports/tr10/tr10-33.html) in string comparisons. But how?