Reputation: 2711
Utf-8 works just for text generated in header, but not for text in (for example) index. Does anyone have an idea how to fix that?
header.php:
<?php
header('Content-Type: text/html; charset=utf-8');
?>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
</head>
....
for example: index.php
<?php
include "header.php";
?>
...body stuff
Thanks :)
Upvotes: 0
Views: 885
Reputation: 4528
Check your file encoding. I don't know what editor you usually use, but in Eclipse you can have a look to in via right click on a file -> properties
For database, check the encoding of each fields & be sure to call "set names utf8" query each time you open a mysql connexion
Upvotes: 2