When using replaceVariableByHTML (), I passed parameters are Chinese, but replaceVariableByHTML part docx document output is garbled. I try to turn various utf-8 encoding, but still the output is garbled. Can you tell me what to do?
When using replaceVariableByHTML (), I passed parameters are Chinese, but replaceVariableByHTML part docx document output is garbled. I try to turn various utf-8 encoding, but still the output is garbled. Can you tell me what to do?
Hello,
phpdocx is fully tested with all languages. We recommend you to read the documentation available on:
https://www.phpdocx.com/documentation/cookbook/working-with-special-characters
https://www.phpdocx.com/documentation/cookbook/convert-html-to-word
about your issue. The most common source of the problem is missing Tidy and mbstring PHP extensions.
Regards.