I am working on PHP PDO and MYSQL database. I was working on localhost xampp but after uploading on live server I got � sign and  sign with text. It's not showing any issue on localhost xampp. Like - This is my text .  I am checking � .
content longtext utf8_general_ci
I am using collation utf8_general_ci in PHPMYADMIN. I have tried -
<?php header("Content-Type: text/html; charset=ISO-8859-1");?>
It removes � sign, not  sign.
<?php header("Content-Type: text/html; charset=utf-8");?>
And it removes  not � This my meta -
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
I am using PHP PDO connection like this -
private $dsn = 'mysql:host=' . self::DBHOST . ';dbname=' . self::DBNAME.';utf8';
public function __construct(){
try{
$this->dbConnection = new PDO($this->dsn, self::DBUSER, self::DBPASS);
$this->dbConnection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
//echo 'Database connected successfully';
}
Is there any issue on the live server or I am doing any mistakes?