X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=SimpleExcel.php;h=e3a4cd208b8f43ba77d55137e1153a65f5e5d16d;hb=4c7b13fd6e89e42c5bbf22e961bcaeb43724c36a;hp=181aa328fbb2a40f0f81464f8b8e764d6f287db1;hpb=7819363a006ab30734b4629d116ff8283710f06e;p=Pman.Core diff --git a/SimpleExcel.php b/SimpleExcel.php index 181aa328..e3a4cd20 100644 --- a/SimpleExcel.php +++ b/SimpleExcel.php @@ -302,7 +302,7 @@ class Pman_Core_SimpleExcel extends Pman foreach($cfg['cols'] as $c=>$col_cfg) { if(isset($col_cfg['dataIndex']) && isset($cl[$col_cfg['dataIndex']])){ - $v = $cl[$col_cfg['dataIndex']]; + $v = iconv("UTF-8", "UTF-8//IGNORE", $cl[$col_cfg['dataIndex']]); }else{ if(isset($col_cfg['fillBlank'])){ $worksheet->write($start_row+$r, $c, '', $formats[$col_cfg['fillBlank']]);