I have a simple function to display genman texts from database.
I get bad output on HTML :
That's the output in HTML (you can see wei� instead of weiß)
My HTML head :
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="latin1">
I tried UTF-8
, ISO-8859-1
didn't work as well, same bad character
The data in my PHPMyQdmin table looks fine:
This is the structure of my table (field cName
):
UPDATE 1 I tried to force the encoding in the SELECT query but didn't get the right result too :
SELECT column1, CONVERT(column2 USING utf8)
FROM my_table
WHERE my_condition;
UPDATE 2 this is my PDO connection :
$conn = new PDO("mysql:host=$servername;dbname=cmondo;charset=utf8", $username, $password);