I am reading a specific field from a database but I am having issues setting the correct charset, I still cant get the accents correctly (à, ã, ê, ...), it shows up as Chinese and question marks characters. is there something wrong in my php code? Thank you .
PHP
<?php
require 'functions.php';
require 'config.php';
$con = connect($config['DB_HOST'], $config['DB_USERNAME'], $config['DB_PASSWORD'],'data_db');
mysql_query("SET NAMES 'utf8'") OR die(mysql_error());
$sql_textIntro = "SELECT * FROM INTRO_TEXT";
$results_textIntro = mysql_query( $sql_textIntro, $con);
?>
HTML
<h1>TITLE</h1>
<?php
$record = mysql_fetch_array($results_textIntro);
echo "<p>".$record['TEXT_FIELD'].'</p>';
?>
</div>