mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2024-12-01 17:56:04 +03:00
iconv rather than mbstring for convert encoding
This commit is contained in:
parent
4779025701
commit
d79bdc5b19
@ -491,14 +491,14 @@ class PHPExcel_Shared_String
|
|||||||
*/
|
*/
|
||||||
public static function ConvertEncoding($value, $to, $from)
|
public static function ConvertEncoding($value, $to, $from)
|
||||||
{
|
{
|
||||||
if (self::getIsMbstringEnabled()) {
|
|
||||||
return mb_convert_encoding($value, $to, $from);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (self::getIsIconvEnabled()) {
|
if (self::getIsIconvEnabled()) {
|
||||||
return iconv($from, $to, $value);
|
return iconv($from, $to, $value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (self::getIsMbstringEnabled()) {
|
||||||
|
return mb_convert_encoding($value, $to, $from);
|
||||||
|
}
|
||||||
|
|
||||||
if($from == 'UTF-16LE'){
|
if($from == 'UTF-16LE'){
|
||||||
return self::utf16_decode($value, false);
|
return self::utf16_decode($value, false);
|
||||||
}else if($from == 'UTF-16BE'){
|
}else if($from == 'UTF-16BE'){
|
||||||
|
Loading…
Reference in New Issue
Block a user