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?
Problem with search
-
- PhoenixCart Developer
- Posts: 1212
- Joined: Sat Dec 21, 2019 8:08 am
- : Buy Me A Beverage
- Has thanked: 38 times
- Been thanked: 103 times
Re: Problem with search
confirmed for Phoenix 1.0.8.16 on local xampp PHP 8.0
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
- Kofod95
- VIP Member
- Posts: 613
- Joined: Sat Feb 06, 2021 7:38 pm
- Has thanked: 80 times
- Been thanked: 142 times
Re: Problem with search
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
"æ", "ø", "å" and "ü" are added to the URL correctly, but not finding products with those characters
//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
Here are a lot of corns: Phoenix user guide
Re: Problem with search
With corrupting characters I meant internally - it's the variable that holds the query what is getting the weird symbols.
- Kofod95
- VIP Member
- Posts: 613
- Joined: Sat Feb 06, 2021 7:38 pm
- Has thanked: 80 times
- Been thanked: 142 times
Re: Problem with search
Sorry, I must have been tired when responding previously.. I'll check correctly next time I'm on the PC.
//Daniel
//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
Here are a lot of corns: Phoenix user guide
Re: Problem with search
Don't worry I was just pointing that the characters are being correctly added to the URL but not internally. Thanks for confirming!