Jump to content

UTF8 in MySQL and PHP


wpb

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.