|
 |
|
PHPWord save filename thai PHPWordเซฟชื่อไฟล์เป็นภาษาไทยไม่ได้ครับ |
|
 |
|
|
 |
 |
|
ได้เเล้วครับ
Code (PHP)
$strname = $objResult["bookno"].$objResult["subject"];
$strname = str_replace("/", "-", $strname);ผมเอา / ออกครับ ใส่ - เข้าไปแทน
$filename = iconv('UTF-8','windows-874',$strname);
$filename = $filename.".docx";
$objWriter->save($filename);
echo "เอกสารเร็จแล้ว คลิก ที่นี่ ".$str."<a href=\"".urlencode($filename)."\">โหลดไฟล์เอกสาร</a>"." ".iconv('windows-874','UTF-8',$filename);
|
ประวัติการแก้ไข 2012-08-14 04:14:59
 |
 |
 |
 |
Date :
2012-08-14 04:13:37 |
By :
nickzombie |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 01
|