Hi
I just started using PHPWord, which i think is awesome. I'm trying to put the following text (using custom font) in the word file:
$fontStyleTitle = array('name'=>'Times New Roman', 'color'=>'000000', 'size'=>12, 'bold'=>true);
$PHPWord->addFontStyle('titleStyle', $fontStyleTitle);
$string = "FORM A – CHECKLIST TO BE COMPLETED FOR C1GBL’S APPLICATION";
$text = $section->addText($string, 'titleStyle');
But the output is:
FORM A â CHECKLIST TO BE COMPLETED FOR C1GBL\âS APPLICATION
I don't know how to fix this. Can anyone help? Thanks in advance.
Ashis
I just started using PHPWord, which i think is awesome. I'm trying to put the following text (using custom font) in the word file:
$fontStyleTitle = array('name'=>'Times New Roman', 'color'=>'000000', 'size'=>12, 'bold'=>true);
$PHPWord->addFontStyle('titleStyle', $fontStyleTitle);
$string = "FORM A – CHECKLIST TO BE COMPLETED FOR C1GBL’S APPLICATION";
$text = $section->addText($string, 'titleStyle');
But the output is:
FORM A â CHECKLIST TO BE COMPLETED FOR C1GBL\âS APPLICATION
I don't know how to fix this. Can anyone help? Thanks in advance.
Ashis