PHPWord中文乱码 我在 使用PHPWord$section->addText(),输出中文是遇到乱码,PHPWord 中文乱码解决如下: 第一步:打开phpword/Section.php文件,找到$givenText = utf8_encode($text);将其改为:$givenText = iconv( 'gbk','utf-8', $text);第二步:打开phpword/template.php ,找到 $replace = utf8_encode($replace);改为 $r…