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, Quote Link to comment 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"); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.