Maison > Article > développement back-end > php 输出到word乱码 如何解决
phpword乱码
<code> <?phpclass Word{ function start(){ ob_start(); //打开输出控制缓冲 echo '<html xmlns:o="urn:schemas-microsoft-com:office:office"'; echo 'xmlns:w="urn:schemas-microsoft-com:office:word"'; echo 'xmlns="http://www.w3.org/TR/REC-html40">'; } function save($path){ echo "</code>