Replies: 4   Views: 4174
Problem with utf-8 encoded text when using embedhtml
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 vecano  · 05-12-2013 - 23:38

I'm using a modified version of the file: "examples/easy/SetLanguage.php" except that I changed addText to embedHTML as:

// ---------------------------------------

require_once '../../classes/';

$docx=new CreateDocx();


$docx->embedHTML('Este documento tiene el español de España como idioma por defecto (The default document language has been set to Spanish-Spain).');


// ---------------------------------------

And I get this file:

I'm using Ubuntu 12.04 LTS, PHP 5.3.10