jacob組卷word轉html 編碼問題

由於word編碼格式中文默認爲gb312,另存爲html時編碼也爲gb2312 ,與服務器以utf8編碼讀取衝突;
解決方法:
// 設置編碼 65001----utf-8
Dispatch option = Dispatch.get(this.document, "WebOptions").toDispatch();
Dispatch.put(option, "Encoding", 65001);
// 接受修訂
Dispatch.call(this.document, "AcceptAllRevisions");
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章