【发布时间】:2016-05-30 15:27:06
【问题描述】:
我是 PHP 新手。我编写了一个将 HTML 转换为 DOC 的脚本。在编辑器而不是 Microsoft Doc 中打开此文件时工作正常。
在 Microsoft Word 中打开此文件时,它无法识别某些特殊字符,包括“”符号。
请在下面找到我的代码并帮助我解决此问题
$ExportContent = '<p>Suppression of NF-κB activity by SAC-Par-4 in PC3-NF-κB-luc and MAT-LyLu-NF-κB-luc cells was studied as described earlier. NF-κB luciferase activity was significantly increased in PC3 cells by ∼2.0-fold and in MAT-LyLu cells by ∼4.0-fold in TNF-α-stimulated cells compared with the untreated control group. However, the TNF-α-stimulated luciferase activity was significantly reduced (p < 0.05) to approximately 2 fold by 30 μg/ml of SAC-Par-4 treatment in both cell lines. In parallel, there was no suppression of NF-κB activity observed in case of TNF-α-stimulated HEK293- NF-κB-luc cells upon treatment with 30 μg/ml of SAC-Par-4-GFP (Figure 3B).</p>';
header("Content-type: application/vnd.ms-word");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-Disposition: attachment;Filename=testdocument.docx");
echo $ExportContent;
提前谢谢..
【问题讨论】: