Skip to content Skip to sidebar Skip to footer

How To Store Special Charaters In Mysql - [aîa]

I am wondering how I would go about storing this in MySQL I am storing it by posting it from a greasemonkey script to php to insert it into a MySQL database. So far [AîA] turns i

Solution 1:

In the PHP file that submits the information into the database I had to set the charset using

mysql_set_charset()

Final connection code:

$conn = mysql_connect($host, $user, $pass);
mysql_select_db($db, $conn);
mysql_set_charset('utf8',$conn);

Thanks Hakre for answer.

Post a Comment for "How To Store Special Charaters In Mysql - [aîa]"