一、php读取word文档怎么处理乱码
通过com调用word组件,试试。
// this script is come from zend. :)
$word = new COM( "word.application ") or die( "Unable to instanciate Word ");
print "Loaded Word, version {$word-> Version}\n ";
$word-> Visible = 1;
$word-> Documents-> Add();
$word-> Selection-> TypeText( "This is a test。 ");
$word-> Documents[1]-> SaveAs( "Useless test.doc ");
$word-> Quit();
?>
二、php读取word文档怎么处理乱码
通过com调用word组件,试试。
<? this="" script="" is="" come="" from="" zend.="" :)="" $word="new" com(="" "word.application="" ")="" or="" die(="" "unable="" to="" instanciate="" word="" ");="" print="" "loaded="" word,="" version="" {$word-=""> Version}\n "; $word-> Visible = 1; $word-> Documents-> Add(); $word-> Selection-> TypeText( "This is a test。 "); $word-> Documents[1]-> SaveAs( "Useless test.doc "); $word-> Quit(); ?>。
转载请注明出处51数据库 » phpword加载乱码
?>
亖呉?盀