Page 1 of 1

Problem with search

Posted: Fri Aug 05, 2022 2:38 pm
by Piernas
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?

Re: Problem with search

Posted: Fri Aug 05, 2022 4:47 pm
by raiwa
confirmed for Phoenix 1.0.8.16 on local xampp PHP 8.0

Re: Problem with search

Posted: Fri Aug 05, 2022 5:10 pm
by Kofod95
Phoenix 1.0.8.16 running on Xampp, windows php 7.4.13:
"æ", "ø", "å" and "ü" are added to the URL correctly, but not finding products with those characters

//Daniel

Re: Problem with search

Posted: Fri Aug 05, 2022 9:21 pm
by Piernas
Kofod95 wrote: Fri Aug 05, 2022 5:10 pm "æ", "ø", "å" and "ü" are added to the URL correctly, but not finding products with those characters
With corrupting characters I meant internally - it's the variable that holds the query what is getting the weird symbols.

Re: Problem with search

Posted: Fri Aug 05, 2022 9:31 pm
by Kofod95
Sorry, I must have been tired when responding previously.. I'll check correctly next time I'm on the PC.

//Daniel

Re: Problem with search

Posted: Sat Aug 06, 2022 1:18 am
by Piernas
Kofod95 wrote: Fri Aug 05, 2022 9:31 pm Sorry, I must have been tired when responding previously.. I'll check correctly next time I'm on the PC.

//Daniel
Don't worry I was just pointing that the characters are being correctly added to the URL but not internally. Thanks for confirming!