alecpl
2010-04-20 9096de8520ce4bfa50dcf896da1dea914f8c9ec8
- handle WIN-* charset as WINDOWS-*


1 files modified
4 ■■■■ changed files
program/include/main.inc 4 ●●●● patch | view | raw | blame | history
program/include/main.inc
@@ -380,8 +380,8 @@
    }
  // handle broken charset names e.g. WINDOWS-1250HTTP-EQUIVCONTENT-TYPE
  if (preg_match('/WINDOWS([0-9]+)/', $str, $m)) {
    return 'WINDOWS-' . $m[1];
  if (preg_match('/(WIN|WINDOWS)([0-9]+)/', $str, $m)) {
    return 'WINDOWS-' . $m[2];
    }
  return $charset;