mantis导出CSV乱码解决方法

    技术2022-05-20  60

    修改csv_export.php添加函数function expChangeCode($str){        $str = mb_convert_encoding($str,"CP936","UTF-8");        return $str;}修改csv_export.php的三行代码将echo $t_header 修改成 echo expChangeCode($t_header);将echo  $t_value 修改成 echo expChangeCode($t_value);将echo $t_function( $t_row[ $t_column ] );修改成 echo expChangeCode($t_function($t_row[ $t_column ]);


    最新回复(0)