PHP/mysql site using utf8mb4 won't retrieve emojis correctly from database, despite utf8mb4 being specified everywhere that I can find to put it
问题 I converted my mysql 5.7 database to utf8mb4 today. As a test, I've put a poo emoji (💩) in a field, using Navicat. It displays fine in Navicat, even if I quit and re-open the program. The problem comes when I retrieve it using PDO in my script and echo it out to the browser; I get ������ (6 diagonal black question markes). If I copy the character directly into my script and echo that, it works. So it's not a problem with mysql. It's not a problem with the font. It's not a problem with my