My PHP connect code
have content stored in a mysql database. When I am trying to retrieve the content using PHP and display it using html and CSS, some of it displays these special characters ������.
$dsn = 'mysql:host=localhost;dbname=theme';
$user = 'root';
$password = '';
try {
$con = new PDO($dsn, $user, $password);
$con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (PDOException $e) {
echo "Unable to connect" . " " . $e->getMessage();
}