Make sure you are using UTF-8 in your HTML:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
...
</head>
In your PHP:
<?php
ini_set('default_charset', 'utf-8');
...
?>
In your SQL CREATE TABLE statements:
CREATE TABLE title(id INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(id), name VARCHAR(255)) DEFAULT CHARSET=UTF8;
If you have all 3 of these set you should eliminate encoding problems.