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.
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
Hello,
You must use an UTF8 editor to do it work.
Regards.
[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?