Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Thursday, November 12, 2026

Diff for Metafox/functions.inc.php between version 1.80 and 1.81

version 1.80, 2008/07/31 16:00:16 version 1.81, 2008/08/01 14:53:23
Line 392  function ezin_normalize_rss2_string($str
Line 392  function ezin_normalize_rss2_string($str
         return $string;          return $string;
 } /* }}} */  } /* }}} */
   
   function ezin_remove_encoding($string) /* {{{ */
   {
           global $ezin_cfg;
           // UTF-8 migrated to ISO-8859-2
           $encoding = strtolower($ezin_cfg['encoding']);
           if ($encoding == 'utf-8') {
                   $string = function_exists('recode')
                           ? recode('utf-8..iso-8859-2', $string)
                           : iconv('UTF-8', 'ISO-8859-2', $string);
                   $encoding = 'iso-8859-2';
                   //echo "/$string/";
           }
   
           // copy/paste from libplaton library
           static $charsets = array(
                           'ascii'        => 'aAaAcCdDeEeEiIlLlLnNoOoOoOrRrRsStTuUuUuUyYzZ',
                           'windows-1250' => 'áÁäÄèÈïÏéÉëËíÍåž¼òÒóÓôÔöÖàÀøØšŠ��úÚüÜùÙýÝžŽ',
                           'iso-8859-2'   => 'áÁäÄèÈïÏéÉìÌíÍåŵ¥òÒóÓôÔöÖàÀøØ¹©»«úÚüÜùÙýݾ®'
                           );
           if (isset($charsets[$encoding])) {
                   $string = strtr($string, $charsets[$encoding], $charsets['ascii']);
           } else { // this is most likely not working :-)
                   $string = function_exists('recode')
                           ? recode($ezin_cfg['encoding'].'..ascii', $string)
                           : iconv(strtoupper($ezin_cfg['encoding']), 'ASCII', $string);
           }
           return $string;
   } /* }}} */
   
 /*  /*
  * Register access function   * Register access function
  */   */

Legend:
Removed from v.1.80  
changed lines
  Added in v.1.81

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top