If I perform a search with the indexof function (casesensitive = true) and the text contains characters such as üèö… I get an incorrect value back. I understand that the problem is with the UTF8 encoding but I don’t know how to fix it.
Var MyText as string = "Test öö IndexOf "
Var Position as integer = MyText.IndexOf("Index",ComparisonOptions.Caseinsensitive)
'Return 8
Var MyText as string = "Test öö IndexOf "
Var Position as integer = MyText.IndexOf("Index",ComparisonOptions.Casesensitive)
'Return 10
Bug for sure - report it. I experimented with converting it to UTF-32 and UTF-16 and it completely fails:
Var MyText as string = "Test öö IndexOf "
mytext=mytext.ConvertEncoding(encodings.UTF32)
Var Position as integer = MyText.IndexOf("Index",ComparisonOptions.Casesensitive)
//Position = -1