Skip to content
Snippets Groups Projects
Commit c7acea78 authored by Przemek Grondek's avatar Przemek Grondek Committed by Jared Hancock
Browse files

Fix ISO codepage

parent 89f3ed77
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment