For instance when I try to insert "Sebastián" into the database, it gets stored as "Sebastián".
This is the test code which I am trying out:
<?php include 'database.php'; ?>
<?php
$name = "Sebastián";
$query = "INSERT INTO students (name) VALUES ('$name')";
$insert_row = $mysqli->query($query) or die($mysqli->error.__LINE__);
if($insert_row){
echo "Insertion was successful";
}
?>
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
</head>
<body>
</body>
</html>
I am using PhpMyAdmin and the setting of the server connection collation is illustrated in the below screenshot: