rtf seems to use iso-8859-1 or equivalent windows charset, not utf-8

This commit is contained in:
Ralf Becker 2019-03-08 11:26:25 +01:00
parent 5d3d3a9930
commit 80c3cb0991

View File

@ -974,6 +974,11 @@ abstract class Merge
$charset = 'utf-8'; // xml files --> always use utf-8 $charset = 'utf-8'; // xml files --> always use utf-8
break; break;
case 'application/rtf':
case 'text/rtf':
$charset = 'iso-8859-1'; // rtf seems to user iso-8859-1 or equivalent windows charset, not utf-8
break;
case 'text/html': case 'text/html':
$is_xml = true; $is_xml = true;
$matches = null; $matches = null;