File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -94,10 +94,10 @@ public static function convertToUTF8($data, $encoding = 'UTF-8')
9494 // application executing this library so we store the value, change it
9595 // to our needs, and then change it back when we are done. This feels
9696 // a little excessive and it would be great if there was a better way.
97- $ save = ini_get ( ' mbstring.substitute_character ' );
98- ini_set ( ' mbstring.substitute_character ' , " none " );
97+ $ save = mb_substitute_character ( );
98+ mb_substitute_character ( ' none ' );
9999 $ data = mb_convert_encoding ($ data , 'UTF-8 ' , $ encoding );
100- ini_set ( ' mbstring.substitute_character ' , $ save );
100+ mb_substitute_character ( $ save );
101101 } // @todo Get iconv running in at least some environments if that is possible.
102102 elseif (function_exists ('iconv ' ) && $ encoding != 'auto ' ) {
103103 // fprintf(STDOUT, "iconv found\n");
You can’t perform that action at this time.
0 commit comments