So I'm trying to find "Wrocław" in my Mysql table with collation utf8_general_ci.
In PHP, I'm using this code
$query = $mysqli->query("
SELECT *
FROM locations
WHERE location
LIKE 'Wrocław'
") or die(mysqli_error($mysqli));
while($row = mysqli_fetch_array($query)) { echo'found it'; exit; }
However, I'm not getting any results. I will get a result when searching for "Barcelona". So I'm guessing that the problem is due to the funny character "ł".
When entering the above Query in PhpMyAdmin, I am in fact finding the row containing "Wrocław" which is the expect result.
Any idea why it's not working on the PHP side? I've also tried to previously use mysqli_real_escape_string on Wrocław
Thanks!