Hello.
In a list of words, there are these ones (among a lot of others) :
ἀγρός, γεωργός, θεός, ἰατρός, καιρός, καρπός (it's ancient greak).
When I seek for "ός" in my app (with IndexOf, or EndsWith, for example), I can find only 3 of them !
If I use GetBytes("UTF8"), I can see that there are 2 different sets of bytes for the string "ός" in these words :
(50,65,52,127,49,126) and (127,31,67,71,49,126)
This explains why some words are not found.
But when I do a search on these same words in Notepad++ (the words are in a csv file), with the same string, it works and all the words are found.
So, my questions :
1. How is it possible to get two different sets of bytes for the same set of characters ?
2. How can Notepad find all these words despite this ?
3. How can I do in my app ?
Thank you for your help.
In a list of words, there are these ones (among a lot of others) :
ἀγρός, γεωργός, θεός, ἰατρός, καιρός, καρπός (it's ancient greak).
When I seek for "ός" in my app (with IndexOf, or EndsWith, for example), I can find only 3 of them !
If I use GetBytes("UTF8"), I can see that there are 2 different sets of bytes for the string "ός" in these words :
(50,65,52,127,49,126) and (127,31,67,71,49,126)
This explains why some words are not found.
But when I do a search on these same words in Notepad++ (the words are in a csv file), with the same string, it works and all the words are found.
So, my questions :
1. How is it possible to get two different sets of bytes for the same set of characters ?
2. How can Notepad find all these words despite this ?
3. How can I do in my app ?
Thank you for your help.