I was previously using Namecheap hosting servers to run my website (https://www.bilawalcoachingcenter.com) and now shifted on Site Ground. The problem is that the words of the Urdu language, that were stored in the database, are not displaying properly. Instead of the words, it is showing me the encoding.
Here is the setup of my HTML page:
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
That's how I'm connecting through PDO:
$this->_pdo = new PDO('mysql:host=' . Config::get('mysql/host') . ';dbname=' . Config::get('mysql/db'), Config::get('mysql/username'), Config::get('mysql/password'));
The Server Connection Collation at Site Ground is utf8mb4_unicode_ci
(same as on Name Cheap)
Kindly help me to solve this problem.
Test Page: https://www.bilawalcoachingcenter.com/vocabulary.php