From 98e00e8843b6407288d7afcaebf253d76c2bc36b Mon Sep 17 00:00:00 2001 From: Nikolay Ivanov Date: Fri, 12 Aug 2016 17:29:48 +0300 Subject: [PATCH] iconv illegal character fix --- src/PhpSpreadsheet/Shared/StringHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PhpSpreadsheet/Shared/StringHelper.php b/src/PhpSpreadsheet/Shared/StringHelper.php index d6a00e8a..c4d43161 100644 --- a/src/PhpSpreadsheet/Shared/StringHelper.php +++ b/src/PhpSpreadsheet/Shared/StringHelper.php @@ -495,7 +495,7 @@ class StringHelper public static function convertEncoding($value, $to, $from) { if (self::getIsIconvEnabled()) { - return iconv($from, $to, $value); + return iconv($from, $to . '//IGNORE//TRANSLIT', $value); } if (self::getIsMbstringEnabled()) {