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.
I think that I found a solution that fixes the UTF-8 issue on Windows. Here is my code snippet:
$old = umask(0);
mkdir (mb_convert_encoding('files/'.$_GET['GA'] .'-'. $_GET['AG'].'-'. $_GET['DATE'].'/' .$row_RsGen['customer'] .' (commission ' . $row_RsGen['date_in'] .') - ' . $row_RsGen['nr'] .'-' . $row_RsGen['year_nr'] . ' - '. $row_RsGen['name1'] .', ' . $row_RsGen['name2'], 'iso-8859-15',0777));
umask($old);
$docx->addTemplate($dir.'/'. $_GET['template']);
$docx->addTemplateVariable('NAME1', $row_RsGen['name1']);
$docx->addTemplateVariable('NAME2', $row_RsGen['name2']);
(...)
$old = umask(0);
$docx->createDocx(mb_convert_encoding('files/'.$_GET['GA'] .'-'. $_GET['AG'].'-'. $_GET['DATE'].'/' .$row_RsGen['customer'] .' (commission ' . $row_RsGen['date_in'] .') - ' . $row_RsGen['nr'] .'-' . $row_RsGen['year_nr'] . ' - '. $row_RsGen['name1'] .', ' . $row_RsGen['name2'].'/'.$row_RsGen['bez_doc'].'_CF_'.$row_RsGen['nr'].'-'.$row_RsGen['year_nr'].'', 'iso-8859-15',0777));
umask($old);
So, I hope this will work on the designated real server as well.
Peter