Forum


Replies: 3   Views: 3406
Addparagraph no working with cyrillic
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 pphornet  · 22-11-2012 - 05:31

when i creating document, addParagraph incorrect show cyrillic text
and addText working fine

===========
it's code:
===========

// addParagraph
$mytext = array(
'type' => 'text',
'text' => 'Это Кириллица - it is Cyrillic'
);

$options =array(
'jc' => 'center',
'sz' => '14',
);

$parameters = array($mytext);
$docx->addParagraph($parameters, $options);

// addText
$paramsText = array(
'jc' => 'center',
'sz' => 14
);

$docx->addText('Это Кириллица - it is Cyrillic', $paramsText);

===========
it's output:
===========

[i][u]addParagraph
[/u][/i]

Это кириллица - it is cyrillyc

[i][u]addText
[/u][/i]

Это кириллица - it is cyrillyc