Sfoglia il codice sorgente

use shorter names for x-euc-tw, x-windows-949 and Outlook Express Korean charsets.

tokul 20 anni fa
parent
commit
2324ed9954
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. 7 0
      functions/i18n.php

+ 7 - 0
functions/i18n.php

@@ -261,6 +261,13 @@ function fixcharset($charset) {
      */
      */
     $charset=preg_replace("/[-:.\/\\\]/",'_',$charset);
     $charset=preg_replace("/[-:.\/\\\]/",'_',$charset);
 
 
+    // OE ks_c_5601_1987 > cp949 
+    $charset=str_replace('ks_c_5601_1987','cp949',$charset);
+    // Moz x-euc-tw > euc-tw
+    $charset=str_replace('x_euc','euc',$charset);
+    // Moz x-windows-949 > cp949
+    $charset=str_replace('x_windows_','cp',$charset);
+
     // windows-125x and cp125x charsets
     // windows-125x and cp125x charsets
     $charset=str_replace('windows_','cp',$charset);
     $charset=str_replace('windows_','cp',$charset);