How to solve the garbled code of php reading word
This article mainly introduces "how to solve php reading word garbled code". In daily operation, I believe many people have doubts about how to solve the problem of php reading word garbled code. Xiaobian consulted all kinds of data and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubt of "how to solve php reading word garbled code". Next, please follow the editor to study!
Php read word garbled solutions: 1, open the corresponding PHP code file; 2, call word components through com, code such as "new COM (" word.application ") or die (...)".
This article operating environment: Windows7 system, PHP7.1 version, DELL G3 computer
What if php reads word garbled codes?
How to deal with garbled code when php reads word documents?
The php file is utf-8, so keep the original style of word after reading it.
Methods:
Call the word component through com and try it.