Forum


Replies: 3   Views: 3677
Utf-8 issues with addtemplatevariable and replacetemplatevariablebyhtml
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 acunnington  · 29-05-2013 - 10:02

Hello



I am having an issue with the addTemplateVariable and replaceTemplateVariableByHTML methods. When I pass them a UTF-8 encoded string, for example: "£190". It replaces in the document with "£190".



I can confirm that all the data being passed between the pages is in UTF-8 format - the data is passed to the script via JSON, and works flawlessly elsewhere, only in PHPDocX it is facing some issues. Is it an issue with the template file not being saved in a UTF-8 format? How would I fix that?



Many thanks in advance.