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?
🏷️ Limited Offer: 25% OFF 🏷️
First 100 purchases only — Special discount!
Use this coupon on checkout: PHPDXPJ_D1SC1N5T
Get it nowWhen 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.