mantis导出CSV乱码解决方法
修改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 ] );
添加函数
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 ] );