Welcome Guest, Not a member yet? Register   Sign In
pdf export with unicode using mpdf
#11

[eluser]Bigil Michael[/eluser]
code used in my model to insert contents to db
Code:
$data = array(
     'description' => ascii_to_entities($this->input->post('description')) ,
            
   );

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);
  $data['description'] = entities_to_ascii($row->description);

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 ????


Messages In This Thread
pdf export with unicode using mpdf - by El Forum - 10-17-2013, 04:48 AM
pdf export with unicode using mpdf - by El Forum - 10-19-2013, 01:48 AM
pdf export with unicode using mpdf - by El Forum - 10-21-2013, 10:00 PM
pdf export with unicode using mpdf - by El Forum - 10-22-2013, 02:10 AM
pdf export with unicode using mpdf - by El Forum - 10-22-2013, 02:35 AM
pdf export with unicode using mpdf - by El Forum - 10-22-2013, 02:55 AM
pdf export with unicode using mpdf - by El Forum - 10-22-2013, 03:44 AM
pdf export with unicode using mpdf - by El Forum - 10-22-2013, 04:34 AM
pdf export with unicode using mpdf - by El Forum - 10-22-2013, 04:56 AM
pdf export with unicode using mpdf - by El Forum - 10-22-2013, 06:50 AM
pdf export with unicode using mpdf - by El Forum - 10-22-2013, 10:38 PM
pdf export with unicode using mpdf - by El Forum - 10-23-2013, 02:06 AM
pdf export with unicode using mpdf - by El Forum - 10-23-2013, 09:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB