When a user enters a postal code, we display location, unfortunately polish characters are not displayed correctly.
50-001 and it should display Wrocław, Dolnośląskie, but it shows up as WrocÃ…â€šaw, DolnoÃ…â€ºlÃ„â€¦skie
Does anyone know how to get this to work or what the problem is?
You have to also tell PDO or MySQLi to use UTF8:
$pdo = new PDO('mysql:host=localhost;dbname=whatever;charset=utf8', $user, $pass);