Revision: 1210
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1210&view=rev
Author:   cimorrison
Date:     2009-10-01 22:57:34 +0000 (Thu, 01 Oct 2009)

Log Message:
-----------
Changed Content-type for CSV reports to text/csv and added a charset to aid 
internationalisation.  (Note that Excel does not open CSV files properly.  To 
open a UTF-8 file in Excel, save it as a .txt file first and then specify the 
charset in the dialogue that appears when you open the file in Excel).

Modified Paths:
--------------
    mrbs/trunk/web/report.php

Modified: mrbs/trunk/web/report.php
===================================================================
--- mrbs/trunk/web/report.php   2009-10-01 22:46:01 UTC (rev 1209)
+++ mrbs/trunk/web/report.php   2009-10-01 22:57:34 UTC (rev 1210)
@@ -573,7 +573,7 @@
 if ($output_as_csv)
 {
   $filename = ($summarize & REPORT) ? $report_filename : $summary_filename;
-  header("Content-type: application/octet-stream");
+  header("Content-Type: text/csv; charset=" . get_charset());
   header("Content-Disposition: attachment; filename=\"$filename\"");
 }
 else


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to