[請益] 關於PHP輸出Word的中文問題
最近在利用PHP輸出word時,出現一些問題…
當輸入的內容為中文字時,輸出的word裡會多出現一些原本沒有輸入的亂碼…
ps.原本輸入的中文字都有出現
請問有人有遇到這樣的問題嗎?
以下是我的程式碼:
$wordTable->ActiveDocument->Tables->Add($wordTable->Selection->Range,2,2);
$wordTable->Selection->TypeText("中文字串\n"); //Write to the current cell
$wordTable->Selection->MoveRight();
$wordTable->Selection->TypeText("中文字串\n");
$wordTable->Selection->InlineShapes->AddPicture("C:\\Program Files\\xampp\\htdocs\\examweb\\pic\\".$record[0].".jpg");
$wordTable->Selection->MoveRight(); //Tab to the next cell
$wordTable->Selection->TypeText("中文字串\n");
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.116.245.241
→
11/21 17:57, , 1F
11/21 17:57, 1F
→
11/22 09:34, , 2F
11/22 09:34, 2F
PHP 近期熱門文章
PTT數位生活區 即時熱門文章