Forum


Replies: 7   Views: 3439
Escape required?
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 nachtschicht  · 11-04-2013 - 12:13

Hi,

the error message is:
[img]http://www.security-blog.eu/wp-content/uploads/2011/11/docx_error.png[/img]

the mentioned area within the xml file is:
[img]http://www.security-blog.eu/wp-content/uploads/2011/11/docx_area.png[/img]

After replacing the strange symbols with an proper ' the docx opened as expected. It looks like an charset conversation problem :-( in some way. :-(

... I just implemented the following (temporary) function to avoid having the problem in my development environment again...
[code]private function ParseOutput($string) {
$out = preg_replace("/[^a-zA-Z0-9\s.,!?&%$ยง-_:;#+*=)(]/", "", $string);
return $out;
}[/code]

Any suggestion for a final solution would be appreciated.

Thanks