اینکد دیتا رو هم utf-8 کردم ولی فایده ای نداشت!
چیکار کنم؟
برای تغییر اینکد دیتا خط زیر رو
به خط زیر تبدیل کردمکد:header( "Content-type: application/vnd.ms-excel; charset=UTF-16LE" ); header("Content-disposition: attachment; filename=ckforms_" . date("Ymd").".csv"); $n=count( $fields ); for ($i=0; $i < $n; $i++) { $rowField = $fields[$i]; if ($rowField->typefield != 'button') { $unicode_str_for_Excel = mb_convert_encoding( $rowField->name, 'UTF-16LE', 'UTF-8'); $data .= "\"".$unicode_str_for_Excel."\""; if ($i < $n-1) $data .= ";"; } }
کد:header( "Content-type: application/vnd.ms-excel; charset=UTF-8" ); header("Content-disposition: attachment; filename=ckforms_" . date("Ymd").".csv"); $n=count( $fields ); for ($i=0; $i < $n; $i++) { $rowField = $fields[$i]; if ($rowField->typefield != 'button') { $unicode_str_for_Excel = mb_convert_encoding( $rowField->name, 'UTF-16LE', 'UTF-8'); $data .= "\"".$unicode_str_for_Excel."\""; if ($i < $n-1) $data .= ";"; } }





علاقه مندی ها (Bookmarks)