I have a MySQL database that is almost is in English but I want to accept all foreign language character sets. Someone submitted a form in Japanese and this came in:
åã¶ã¾ã‚€ã˜è·æ¨©ã‚·ã‚«ãƒ¦å…·å´æ¨©ã›æ±ºæ—©ãƒ
How can I make it so all language characters are stored properly?
My MySQL DB is set up as: InnoDB, utf8mb4, utf8mb4_general_ci
I am using PDO:
$conn = new PDO("mysql:charset=utf8mb4;host=$servername;dbname=$dbname", $username, $password);
and I am using this PHP to call the header:
$header_text = 'Content-type: text/html; charset=utf-8';
header($header_text);
It is sending emails out correctly, just not storing the data in MySQL correctly.
Thanks