diff --git a/typo3/sysext/indexed_search/Classes/FileContentParser.php b/typo3/sysext/indexed_search/Classes/FileContentParser.php index 4fe93590d5f342c29796580524f17a31b6459351..25c0fc96a8b7e0b5f495426dec73bc273317ba2e 100644 --- a/typo3/sysext/indexed_search/Classes/FileContentParser.php +++ b/typo3/sysext/indexed_search/Classes/FileContentParser.php @@ -473,7 +473,7 @@ class FileContentParser if ($this->app['pdfinfo']) { $this->setLocaleForServerFileSystem(); // Getting pdf-info: - $cmd = $this->app['pdfinfo'] . ' ' . escapeshellarg($absFile); + $cmd = $this->app['pdfinfo'] . ' -enc UTF-8 ' . escapeshellarg($absFile); CommandUtility::exec($cmd, $res); $pdfInfo = $this->splitPdfInfo($res); unset($res); @@ -796,7 +796,7 @@ class FileContentParser foreach ($pdfInfoArray as $line) { $parts = explode(':', $line, 2); if (count($parts) > 1 && trim($parts[0])) { - $res[strtolower(trim($parts[0]))] = mb_convert_encoding(trim($parts[1]), 'UTF-8', 'ISO-8859-1'); + $res[strtolower(trim($parts[0]))] = trim($parts[1]); } } }