String parameter. Like:
File myFile = File(myString);
myString contains diacritic marks. For example “ó”.
And when I later get file name with method
File::getFileName() I get the same string. They looks exactly the same in debuger. But comparing them with
equalsIgnoreCase() always gives me
I don’t know why and how to repair it?
I tried to debug in
for loop whole strings with operator
char myStringChar = myString[i];
char fileStringChar = myFile.getFileName()[i];
And for letter “ó”
myStringChar is straight “o”. So it removed diacritic mark.
But what is more strange the same letter in
fileStringChar is something like that “\xc3”.
How to handle it? And how to be sure it would work on Windows and OSX.
Now I don’t know how it works on Windows. And that behaviour is on OSX Big Sure on Macbook Pro with new M1 processor (maybe it has something to do with that issue)?
For any help great thanks in advance.