作者Nicky0908 (鸟鹏)
看板PHP
标题[请益] 关於PHP输出Word的中文问题
时间Tue Nov 21 16:27:42 2006
最近在利用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
1F:→ superGA:是UTF8吗 11/21 17:57
2F:→ Nicky0908:中文字串都是big5耶… 11/22 09:34