There was an error while loading. Please reload this page.
1 parent 4779025 commit d79bdc5Copy full SHA for d79bdc5
Classes/PHPExcel/Shared/String.php
@@ -491,14 +491,14 @@ public static function UTF8toBIFF8UnicodeLong($value)
491
*/
492
public static function ConvertEncoding($value, $to, $from)
493
{
494
-if (self::getIsMbstringEnabled()) {
495
-return mb_convert_encoding($value, $to, $from);
496
-}
497
-
498
if (self::getIsIconvEnabled()) {
499
return iconv($from, $to, $value);
500
}
501
+if (self::getIsMbstringEnabled()) {
+return mb_convert_encoding($value, $to, $from);
+}
+
502
if($from == 'UTF-16LE'){
503
return self::utf16_decode($value, false);
504
}else if($from == 'UTF-16BE'){
0 commit comments