wpb Posted November 27, 2007 Share Posted November 27, 2007 Hello, I have a MySQL database with mainly English text, but also some Japanese. The charset of the database is set to UTF8. When I read the Japanese field data into a PHP variable and echo it to some HTML, I just get "???"s displayed. The charset of the HTML page is correctly set to UTF8, too. Is there some other setting (perhaps in PHP) that I need to set? Or do normal string variables in PHP not work with UTF8? Thanks, Link to comment https://forums.phpfreaks.com/topic/79119-utf8-in-mysql-and-php/ Share on other sites More sharing options...
BenInBlack Posted November 27, 2007 Share Posted November 27, 2007 in the connector object for mysqli, $connConnection = new mysqli($myhost, $connUser, $connPass, $dbname); $connConnection->set_charset("utf8"); Link to comment https://forums.phpfreaks.com/topic/79119-utf8-in-mysql-and-php/#findComment-400451 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.