Problem with search
Posted: Fri Aug 05, 2022 2:38 pm
I've found an strange issue on a localhost setup (XAMPP/windows 10).
If I search for words that include non-latin characters like "ç", "ñ" or "ë" the search does not work. Looks like strtolower function is returning these characters as � character, so the search query is not returning anything.
That search works on an online setup so I presume it has something to do with the Xampp setup. It is fixed by using mb_strtolower instead strtolower in the search class.
Can someone confirm if that kind of search works on other localhost setup? Any idea why the strtolower function corrupts characters?
If I search for words that include non-latin characters like "ç", "ñ" or "ë" the search does not work. Looks like strtolower function is returning these characters as � character, so the search query is not returning anything.
That search works on an online setup so I presume it has something to do with the Xampp setup. It is fixed by using mb_strtolower instead strtolower in the search class.
Can someone confirm if that kind of search works on other localhost setup? Any idea why the strtolower function corrupts characters?