I did everything I could, but special characters do not display correctly on this web page.
For example, in a database, this is:

But on the site it is:
Nouveaux R alistes
Here everything that I checked ...
The database is set to UTF-8:

The page was written in NetBeans, with the document encoding set to UTF-8:

The page title declares UTF-8:

The meta encoding is set to UTF-8:

I even added the following line to my .htacess:

But the characters are still not displayed correctly, and I get the following error from the W3C Validator:

It seems to me that I tried everything, but it still won’t work. (I even tried htmlspecialchars and htmlentities in PHP, but the page doesn't even display!)
UPDATE
As requested, here is the code I'm using:
class Exhibition { public $exhibitionDetails; public function __construct(Database $db, $exhibitionID){ $this->_db = $db; $params['ExhibitionID'] = $exhibitionID; $STH = $this->_db->prepare("SELECT * FROM Exhibition INNER JOIN Schedule ON Exhibition.ExhibitionID = Schedule.ExhibitionID WHERE Schedule.Visible = 1 AND Exhibition.ExhibitionID = :ExhibitionID;"); $STH->execute($params); $this->exhibitionDetails = $STH->fetchAll(PDO::FETCH_ASSOC); } }
A...
try { $db = new Database(SITE_ROOT."/../"); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $exhibition = new Exhibition($db,$_GET['id']); } catch (PDOException $e) { echo "<p class='error'>ERROR: ".$e->getMessage()."</p>"; }
And finally ...
<p><?php echo $exhibition->exhibitionDetails[0]["Desc"]; ?></p>