讀取數據函數:
getData( = (( = (,"r")) !== (( = ()) !== = ( =>[] = mb_convert_encoding(,"UTF-8","gbk"); [] =
發現讀取的中文字符串為空....
解決方法:將fgetcsv函數換成自定義的_fgetcsv函數
_fgetcsv(&, = , = ',', = '"' = ( = ( = ""= ( != .= ( () ? () : (, = ('/' . . '/', , ( % 2 == 0 = = ('/(?: |[ ])?$/', , ( = '/(' . . '[^' . . ']*(?:' . . . '[^' . . ']*)*' . . '|[^' . . ']*)' . . '/'(, , = [1 ( = 0; < (); ++[] = ('/^' . . '(.*)' . . '$/s', '$1' , [[] = ( . , , [ () ? :
參考:
http://bbs.csdn.net/topics/390040230
http://hi.baidu.com/maojianlw/item/d3ee390e820cfbcb75cd3c5c
http://phpexcel.codeplex.com/(操作excel的庫:phpexcel)