PHP GD Text and Special Characters / Encoding?
问题 I'm generating text in php using imagettftext. the text is being pulled from a mysql database. some characters are not appearing in the rendered text despite being in the character map for the font and appearing in the database. for example, m-dashes (—)and smartquotes/apostrophes (“”’). the characters either don't appear or are replaced by question marks. i suspect this has to do with encoding, but i don't know enough about encoding to know where to start. any help would be much appreciated.