nevergreen#77405
My feedback
3 results found
-
2 votes
An error occurred while saving the comment nevergreen#77405 supported this idea ·nevergreen#77405 shared this idea · -
3 votesnevergreen#77405 supported this idea ·
-
550 votes
An error occurred while saving the comment nevergreen#77405 commentedSmfx88#33327 's solution and it worked for me! Thanks
I've found the reason why and I think I have a solution for it. Since I also work as a developer I know that this is a very common mistake we do while localizing.
THE PROBLEM
When you search for a card that includes the "i" character there is no result. But when you search for a card with "ı" character the results show up.
POSSIBLE SOLUTION
The reason this is happening is, I use a Turkish OS on my PC. And in Turkish alphabet we have these characters "ı i I İ". When you convert these characters to uppercase it becomes as I've shown below.
ı ----> I
i ----> İ
In programming, to make a proper search query we always covert input strings to either all uppercase or lowercase. And at this point it fails because instead of using .toUppercase() or .toLowercase() methods, I think you have used toLocaleUpperCase() or toLocaleLowerCase() methods. So when I try to search for the keyword "vito" it converts to "VİTO" not "VITO" or "light" becomes "LİGHT" not "LIGHT". And therefore the search query fails. I think the very same reason also causes the "?dualfaced" query to fail somehow.