From c174c2b9aa305a94fa1fa64563877bf3f781cc89 Mon Sep 17 00:00:00 2001 From: SUTJael Date: Thu, 27 Mar 2014 13:15:02 +0100 Subject: [PATCH] Fix #171 --- modules/archive/archive.lib.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/archive/archive.lib.php b/modules/archive/archive.lib.php index 6842f78242..bb85b3ccbd 100644 --- a/modules/archive/archive.lib.php +++ b/modules/archive/archive.lib.php @@ -18,7 +18,7 @@ class archive { /** * constructor - * This function is the constructor for the arcive class + * This function is the constructor for the archive class */ public function archive($name) { $this->options = array ( @@ -643,6 +643,11 @@ function create_zip() foreach ($current as $key => $value) { debug_event("archive.lib.php", "Processing ".$key."[".$value."]...", "5"); } + + if (function_exists('iconv')) { + // Fix encoding issue for zip archives + $current['name2'] = iconv('UTF-8', 'CP852', $current['name2']); + } if ($current['name'] == $this->options['name']) continue;