Polish characters in PHPWord

Jun 19, 2013 at 1:53 PM
How can I save a document word of Polish characters?
I will be grateful for your help
Developer
Jun 19, 2013 at 7:39 PM
On 19/06/2013 14:53, darteye wrote:
How can I save a document word of Polish characters?
I will be grateful for your help
Use UTF-8

-- 
Mark Baker
Jun 19, 2013 at 10:09 PM
Edited Jun 20, 2013 at 8:46 AM
MarkBaker wrote:
On 19/06/2013 14:53, darteye wrote: How can I save a document word of Polish characters? I will be grateful for your help Use UTF-8 -- Mark Baker
I have utf-8
and collected data from a mysql database to utf-8

<?php
mysql_query("SET NAMES 'utf8'");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="pl" xml:lang="pl">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />

or anywhere else you need to set utf-8?

I found yet: https://phpword.codeplex.com/discussions/431281
but it also does not work

return html_entity_decode(iconv('UTF-8', 'UTF-8',$texto));
return html_entity_decode(iconv('UTF-8', 'ISO-8859-2',$texto));
return html_entity_decode(iconv('UTF-8', 'windows-1250',$texto));
return html_entity_decode(iconv('ISO-8859-2', 'UTF-8',$texto));

no way did not work