Skip to main content

special character like " not showing properly in pdf



I using html2fpdf library to generate a pdf in codeigniter .I have some data in a varchar field like " What are your child’s academic strengths? " which is showing like " What are your child’s academic strengths? " .





How I can show it as it is in the database .(I have tried htmlspecialchars_decode , html_entity_decode function but it not worked. )


Comments

  1. The problem maybe in retrieval,insertion of data from/to mysql using php
    You need to set the charset before saving stuff to db or reading them back.

    mysql_set_charset('utf8');


    See UTF8, PHP and MySQL

    ReplyDelete

Post a Comment

Popular posts from this blog

Slow Android emulator

I have a 2.67 GHz Celeron processor, 1.21 GB of RAM on a x86 Windows XP Professional machine. My understanding is that the Android emulator should start fairly quickly on such a machine, but for me it does not. I have followed all instructions in setting up the IDE, SDKs, JDKs and such and have had some success in staring the emulator quickly but is very particulary. How can I, if possible, fix this problem?