From c7acea78d87c994cb1b6909ca9c89c6fa5b06404 Mon Sep 17 00:00:00 2001
From: Przemek Grondek <github@nerull7.info>
Date: Mon, 13 Apr 2015 13:26:52 +0200
Subject: [PATCH] Fix ISO codepage

---
 include/class.charset.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/class.charset.php b/include/class.charset.php
index 5411e6b4a..e3697dd58 100644
--- a/include/class.charset.php
+++ b/include/class.charset.php
@@ -29,6 +29,8 @@ class Charset {
         // ks_c_5601-1987: Korean alias for cp949
         case preg_match('`^ks_c_5601-1987`', $charset):
             return 'cp949';
+        case preg_match('`^iso-?(\S+)$`', $charset, $match):
+            return "ISO-".$match[1];
         // Incorrect, bogus, ambiguous or empty charsets
         // ISO-8859-1 is assumed
         case preg_match('`^(default|x-user-defined|iso|us-ascii)`', $charset):
-- 
GitLab