Changeset 3195 in subversion


Ignore:
Timestamp:
Jan 9, 2010 1:28:01 PM (3 years ago)
Author:
alec
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_shared.inc

    r3193 r3195  
    516516 
    517517  // iconv/mbstring are much faster (especially with long strings) 
    518   if (function_exists('mb_convert_encoding') && ($res = mb_convert_encoding($input, 'UTF8', 'UTF8')) !== false) 
     518  if (function_exists('mb_convert_encoding') && ($res = mb_convert_encoding($input, 'UTF-8', 'UTF-8')) !== false) 
    519519    return $res; 
    520520 
    521   if (function_exists('iconv') && ($res = iconv('UTF8', 'UTF8//IGNORE', $input)) !== false) 
     521  if (function_exists('iconv') && ($res = iconv('UTF-8', 'UTF-8//IGNORE', $input)) !== false) 
    522522    return $res; 
    523523 
     
    537537  $out = ''; 
    538538 
    539   for ($i = 0, $len = strlen($input)-1; $i < $len; $i++) { 
     539  for ($i = 0, $len = strlen($input); $i < $len; $i++) { 
    540540    $chr = $input[$i]; 
    541541    $ord = ord($chr); 
Note: See TracChangeset for help on using the changeset viewer.