File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -222,9 +222,8 @@ protected function _normalizeData( $data ) {
222
222
}
223
223
break ;
224
224
case 'string ' :
225
- // condition introduced for Issue with non-English text #240 where languages such as Hebrew get messed up.
226
- if ( function_exists ( 'mb_detect_encoding ' ) && mb_detect_encoding ( $ data [ $ i ] ) !== 'UTF-8 ' ) {
227
- $ data [ $ i ] = utf8_encode ( $ data [ $ i ] );
225
+ if ( function_exists ( 'mb_detect_encoding ' ) && mb_detect_encoding ( $ data [ $ i ] ) !== 'ASCII ' ) {
226
+ $ data [ $ i ] = \ForceUTF8 \Encoding::toUTF8 ( $ data [ $ i ] );
228
227
}
229
228
break ;
230
229
}
Original file line number Diff line number Diff line change 23
23
"require" : {
24
24
"codeinwp/themeisle-sdk" : " master" ,
25
25
"xrstf/composer-php52" : " ^1.0.20" ,
26
- "PHPOffice/PHPExcel" : " ^1.8.1"
26
+ "PHPOffice/PHPExcel" : " ^1.8.1" ,
27
+ "neitanod/forceutf8" : " ~2.0"
27
28
},
28
29
"autoload" : {
29
30
"files" : [
You can’t perform that action at this time.
0 commit comments