mantis导出csv文件乱码处理方式。

上一篇 / 下一篇  2014-05-22 09:25:44 / 个人分类:mantis配置

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

 

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

添加函数

  1. function expChangeCode($str)  
  2.   
  3. {  
  4.   
  5.         $str = mb_convert_encoding($str,"CP936","UTF-8");  
  6.   
  7.         return $str;  
  8.   
  9. }  
  10.   
  11.    
  12.   
  13. echo $t_header 修改成 echo expChangeCode($t_header);  
  14.   
  15. echo csv_escape_string( $t_value ); 修改成 echo expChangeCode(csv_escape_string( $t_value ));  
  16.   
  17. echo $t_function$t_row );修改成 echo expChangeCode($t_function$t_row ));  

TAG:

 

评分:0

我来说两句

Open Toolbar