Polish special characters do not display properly

advertisements

When a user enters a postal code, we display location, unfortunately polish characters are not displayed correctly.

Example:

User enters 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);

or

$mysqli->set_charset("utf8")