diff --git a/src/Code/Converters/SmiConverter.php b/src/Code/Converters/SmiConverter.php index de3f3c2..f0b61bb 100644 --- a/src/Code/Converters/SmiConverter.php +++ b/src/Code/Converters/SmiConverter.php @@ -19,7 +19,11 @@ public function fileContentToInternalFormat($file_content, $original_file_conten { $internal_format = []; // array - where file content will be stored - $file_content = mb_convert_encoding($file_content, 'HTML-ENTITIES', "UTF-8"); + // $file_content = mb_convert_encoding($file_content, 'HTML'); + // in the future 'HTML' parameter will be deprecated, so use this function instead + // https://github.com/mantas-done/subtitles/issues/87 + $file_content = mb_encode_numericentity($file_content, [0x80, 0x10FFFF, 0, ~0], 'UTF-8'); + if (strpos($file_content, '') === false) { $file_content = str_replace('