From bb5e67eb0f7599683cdaf6f2f693e7b5c7aff56c Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Wed, 23 Jul 2014 18:14:58 +0100 Subject: Ensure all filenames are UTF-8 encoded and also add a raw output mode --- index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index f84f961..37f6844 100644 --- a/index.php +++ b/index.php @@ -237,7 +237,7 @@ while ($this_array = each($new_array)){ break; } - $listing[$listsize]['filename'] = $value; + $listing[$listsize]['filename'] = utf8_encode($value); $listing[$listsize]['type'] = $icon; $listing[$listsize]['modified'] = $key; $listing[$listsize]['size'] = $size_array[$key]; @@ -286,5 +286,7 @@ for ($i = 0; $i < count($listing); $i++) { -- cgit v1.2.3