Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
documents and utf8
#2
Besides the optimal solution which is moving to a serious operating system like linux :-)  try this patch and let us know how it goes:



Code:
diff --git a/modules/uploads/downloadfile.php b/modules/uploads/downloadfile.php
index 31118ef..4d37f2d 100644
--- a/modules/uploads/downloadfile.php
+++ b/modules/uploads/downloadfile.php
@@ -34,7 +34,8 @@ if(!empty($deletecheck) && $adb->query_result($deletecheck, 0, 'deleted') == 1)
                header("Content-type: $fileType");
                header("Pragma: public");
                header("Cache-Control: private");
-               header("Content-Disposition: attachment; filename=\"$name\"");
+               $send_name = html_entity_decode($name, ENT_QUOTES, 'ISO-8859-15');
+               header("Content-Disposition: attachment; filename=\"$send_name\"");
                header("Content-Description: PHP Generated Data");
                echo $fileContent;
        } else {
Joe
TSolucio
Reply


Messages In This Thread
documents and utf8 - opto - 09-07-2015, 10:23 AM
RE: documents and utf8 - joebordes - 09-14-2015, 06:57 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)