Forum


Replies: 10   Views: 3981
Utf8 support
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 nachtschicht  · 13-03-2012 - 09:00

Hi,

this Problem is probably related to the "escape problem": http://www.phpdocx.com/forum?vasthtmlaction=viewtopic&t=148.00

Environment:
Eclipse - UTF8 set as default, and is confirmed to be inherited for the relevant files.
Server - Debian Linux with all locales set to UTF8
-> Other UTF8 content is displayed without any problems e. g. using PHPexcel

Setup:
[php]
$docx = new CreateDocx();
$docx->setEncodeUTF8();

// TEST
$docx->addText("öööööäääääßßßßß", $this->docx_params_Text_h1);
[/php]

The special (german-) chars are not displayed as they should be:

öööööäääääßßßßß

Can you please check the setEncodeUTF8() function and provide a patch if needed.