vendredi 19 septembre 2014

Display unicode symbols (heart, diamond, etc.) in FPDF


Vote count:

0




I am currently using FPDF to generate PDFs in PHP. Occasionally, these PDFs must include unicode icons like hearts, diamonds, spades, etc. Here's an example:



"This is a string ♡♡"


However, I cannot get those symbols to display. I've tried mb_convert_encoding, iconv, changing the font and none of them are giving me the result I need. Chinese, Japanese and Korean text are all displaying without issue; the problem seems to be related only to symbols.


Any ideas of how to display these in FPDF? Thanks.



asked 40 secs ago







Display unicode symbols (heart, diamond, etc.) in FPDF

Aucun commentaire:

Enregistrer un commentaire