![]() |
pdf export with unicode using mpdf - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: pdf export with unicode using mpdf (/showthread.php?tid=59533) Pages:
1
2
|
pdf export with unicode using mpdf - El Forum - 10-22-2013 [eluser]Bigil Michael[/eluser] code used in my model to insert contents to db Code: $data = array( now updated the db collation to utf8_general_ci now db content is like this Code: <p align="JUSTIFY"><span karthika; font-size: medium;">ഇത് ഒരു ടെസ്റ്റ് വർക്ക് ആണ് </span></p> reading contents from db like this Code: $row = $this->Authors_model->get_selected($selected_authors); when i echo contents like print_r($data['description']) it prints ഇത് ഒരു ടെസ്റ്റ് വർക്ക് ആണ് when i export it shows square boxes if i save statically like $data['decription'] = 'ഇത് ഒരു ടെസ്റ്റ് വർക്ക് ആണ് '; exports perfectly. i searched a lot but didn't get any solution. can you tell me is it a database issue ???? pdf export with unicode using mpdf - El Forum - 10-23-2013 [eluser]Otemu[/eluser] Can you not change the language setting in the database and save it as ഇത് ഒരു ടെസ്റ്റ് വർക്ക് ആണ്?? How do you know the current html code entities stored in the db are even valid?? pdf export with unicode using mpdf - El Forum - 10-23-2013 [eluser]Bigil Michael[/eluser] if I didn't change the database collation, save only asci values like #&1234;. |