如何使用PHP com将unicode数据导出到word文档中 [英] How to export unicode data into word document using PHP com
问题描述
我正在使用Php COM导出unicode数据。我已在我的网页顶部写下以下行:
< meta http-equiv ='Content-Type'content ='text / html; charset = utf-8'>
但是当我使用Php COM将unicode数据导出到word文档中时,它并没有像unicode那样正常运行,Instood它将如下所示:
$ b $bಆà²|ಿà²àಲà³à²²à²²ààààààààààààààààà²ààààààààààààààààààààààà
我尝试了什么:
< meta http-equiv ='Content-Type'content = text / html的; charset = utf-8'>
$ unicode_data =ಆದಿಯಲ್ಲಿ;
$ word = new variant(com_get_active_object(word.application));
$ word-> Selection-> TypeText($ unicode_data);
?>
unicode_data = ಆದಿಯಲ್ಲಿ;
word = new variant(com_get_active_object(word.application));
word - >选择 - >的TypeText(
I am exporting unicode data using Php COM. I have written in top of my web page the below line:
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
But when I export the unicode data into a word document using Php COM, It is not coming properly like a unicode, Instood it is coming as shown below:
ಆದಿಯಲà³à²²à²¿ ದೇವರೠಆಕಾಶವನà³à²¨à³
What I have tried:
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
$unicode_data = "ಆದಿಯಲ್ಲಿ";
$word = new variant(com_get_active_object("word.application"));
$word->Selection->TypeText($unicode_data);
?>
unicode_data = "ಆದಿಯಲ್ಲಿ";
word = new variant(com_get_active_object("word.application"));
word->Selection->TypeText(
这篇关于如何使用PHP com将unicode数据导出到word文档中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!