Forum


Replies: 4   Views: 4531
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/CreateDocx.inc';

$docx=new CreateDocx();

//$docx->setLanguage('es-ES');

$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).');

$docx->createDocx('../docx/example_setLanguage');

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



And I get this file: http://ge.tt/8cVW1a71/v/0?c



I'm using Ubuntu 12.04 LTS, PHP 5.3.10