Hi bradgrafelman
I have used the following code on both my website and CMS in the DBCONN script before any HTML is output:
$dblink = mysqli_connect(DBHOST, DBUSER, DBPASS, DBNAME);
/* check connection */
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
$q = "SET character_set_results = 'utf8', character_set_client = 'utf8', character_set_connection = 'utf8', character_set_database = 'utf8', character_set_server = 'utf8'";
$r = mysqli_query($dblink,$q);
if (!mysqli_set_charset($dblink, "utf8")) {
printf("Error loading character set utf8: %s\n", mysqli_error($dblink));
} else {
printf("Current character set: %s\n", mysqli_character_set_name($dblink));
}
My script says its UTF8.
I am at a complete loss as how to fix this. I can physically pull up the record by passing an ID across the URL in my CMS to display the record and when I do I can save the record without any problems, still saving the string "Wärme" to the database. But when I view the list page of records saved in my table, that particular record will not show.
Any other ideas as to what could be the issue?
So frustrating!
Thanks in advance.