Mantis导出CSV乱码解决方法

mantis导出CSV乱码解决方法 (版本:1.2.15)

 

在mantis安装目录中修改csv_export.php

添加函数

function expChangeCode($str)



{



        $str = mb_convert_encoding($str,"CP936","UTF-8");



        return $str;



}



 



将echo $t_header 修改成 echo expChangeCode($t_header);



将echo csv_escape_string( $t_value ); 修改成 echo expChangeCode(csv_escape_string( $t_value ));



将echo $t_function( $t_row );修改成 echo expChangeCode($t_function( $t_row ));




 

 

你可能感兴趣的:(ant)