Changeset 6481d4bb in github


Ignore:
Timestamp:
Jan 9, 2010 1:28:01 PM (3 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
27e9a5b
Parents:
57837fd
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/include/rcube_shared.inc

    r892af47 r6481d4bb  
    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.