I have made a test document.php:
[code]
require_once '../phpdocx/classes/CreateDocx.inc';
$docx = new CreateDocx();
$docx->setEncodeUTF8();
$docx->setLanguage("de-DE");
$text = 'Ü - ä - ßberschrift Lorem ipsum dolor sit amet, consectetur adipisicing elit';
$paramsText = array(
'b' => 'single',
'font' => 'Arial'
);
$docx->addText($text, $paramsText);
$docx->createDocx('example_text');
[/code]
The file is saved as UTF-8.
But the created Docx has wrong letters in it:
[code]
à - ä - à - à - berschrift Lorem ipsum dolor sit amet, consectetur adipisicing elit
[/code]