Forum


Replies: 3   Views: 3345
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


Posted by admin  · 11-04-2013 - 12:13

Hello,

You must use an UTF8 editor to do it work.

Regards.

Posted by pphornet  · 11-04-2013 - 12:13

[quote][b]Quote from admin on November 22, 2012, 15:28[/b]
Hello,

You must use an UTF8 editor to do it work.

Regards.[/quote]

you are sure that I use 2 editor in one code?

one for 'addParagraph' without UTF8
and second for 'addText' with UTF8?