Changeset 6481d4bb in github
- Timestamp:
- Jan 9, 2010 1:28:01 PM (3 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 27e9a5b
- Parents:
- 57837fd
- File:
-
- 1 edited
-
program/include/rcube_shared.inc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/include/rcube_shared.inc
r892af47 r6481d4bb 516 516 517 517 // iconv/mbstring are much faster (especially with long strings) 518 if (function_exists('mb_convert_encoding') && ($res = mb_convert_encoding($input, 'UTF 8', 'UTF8')) !== false)518 if (function_exists('mb_convert_encoding') && ($res = mb_convert_encoding($input, 'UTF-8', 'UTF-8')) !== false) 519 519 return $res; 520 520 521 if (function_exists('iconv') && ($res = iconv('UTF 8', 'UTF8//IGNORE', $input)) !== false)521 if (function_exists('iconv') && ($res = iconv('UTF-8', 'UTF-8//IGNORE', $input)) !== false) 522 522 return $res; 523 523 … … 537 537 $out = ''; 538 538 539 for ($i = 0, $len = strlen($input) -1; $i < $len; $i++) {539 for ($i = 0, $len = strlen($input); $i < $len; $i++) { 540 540 $chr = $input[$i]; 541 541 $ord = ord($chr);
Note: See TracChangeset
for help on using the changeset viewer.
