MYSQLI / PHP > Cannot UPDATE with UTF8 Characters-ThrowExceptions

Exception or error:

people of Stack Overflow!
Im having a problem that i am not able to resolve.

I am currently attempting to update information into my database, however, it simply will not update it in the UTF8 Charset.

$db_overflow = mysqli_connect('', '', '', '');
$db_overflow->set_charset('utf8');
$sql = "UPDATE table SET name=Hallöchen WHERE id=1";
$stmt = mysqli_stmt_init($db_overflow);
mysqli_stmt_execute();

It does update the database, however, not with the UTF8 charset, and i have no idea why.
It’d be great if someone would have an answer regarding that! Thanks in advance 😉

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *