Forum


Replies: 1   Views: 2738
Replacevariablebyhtml chinese garbled
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by rocky9988  · 03-12-2018 - 13:48

$tmp->replaceVariableByHTML('vul_content_desc', 'inline', '<p style="font-family: verdana; font-size: 11px">C/ 中国 Matías Turrión 24, Madrid 28043 <b>Spain</b></p>', array('isFile' => false, 'parseDivsAsPs' => true, 'downloadImages' => false));

Is there any problem with PHP configuration? It's been scrambling in Chinese all the time,

 

Mac os used

Mac os used

Posted by admin  · 04-12-2018 - 07:10

Hello,

All characters and languages are fully tested and working. If you don't display them correctly:

1. You don't have installed or enabled Tidy or mbstring PHP extensions.

2. You are not using UTF8 charset.

We have verified the trial package is working correctly. If you purchase a package and still have the same issue, please write to contact[at]phpdocx.com and the support team will help you.

Regards.