We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6350732 commit 1eddba7Copy full SHA for 1eddba7
src/fpdm.php
@@ -1787,6 +1787,10 @@ function parsePDFEntries(&$lines){
1787
if(($name=="")&&preg_match("/^\/T\s?\((.+)\)\s*$/",$this->_protectContentValues($CurLine),$match)) {
1788
1789
$name=$this->_unprotectContentValues($match[1]);
1790
+ //FIX: convert ASCII object names to utf-8
1791
+ // don't use utf8_encode($name) yet, it's core function since php 7.2
1792
+ $name = mb_convert_encoding($name, 'UTF-8', 'ASCII');
1793
+ //ENDFIX
1794
if($verbose_parsing) echo ("Object's name is '<i>$name</i>'");
1795
1796
$object["infos"]["name"]=$name; //Keep a track
@@ -2116,4 +2120,4 @@ function Error($msg) {
2116
2120
2117
2121
}
2118
2122
2119
-unset($__tmp);
2123
+unset($__tmp);
0 commit comments