Skip to content

Commit 881fc29

Browse files
committed
adjusting lib
1 parent 410e941 commit 881fc29

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Iptc.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ public function fetchAll($tag)
252252
*/
253253
public function dump()
254254
{
255-
return print_r($this->_meta, true);
255+
return $this->_charset_encode(print_r($this->_meta, true));
256256
}
257257

258258
/**

readIptc.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
require 'Iptc.php';
44

55
$iptc = new Iptc('logo_php.jpg');
6-
print_r($iptc->fetchAll(Iptc::KEYWORDS));
6+
echo "\nIptc->fetchAll: ";print_r($iptc->fetchAll(Iptc::KEYWORDS)) . "\n";
7+
echo "\nIptc->dump: "; print_r($iptc->dump()) . "\n";

writeIptc.php

+1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66
$iptc->set(Iptc::KEYWORDS,array(
77
'keyword1','This is a test with special characters ö, ä, ü'
88
));
9+
$iptc->set(Iptc::CITY, "São Paulo");
910
$iptc->write();

0 commit comments

Comments
 (0)