From: <min...@us...> - 2006-05-22 21:31:08
|
Revision: 13715 Author: mindless Date: 2006-05-22 14:30:56 -0700 (Mon, 22 May 2006) ViewCVS: http://svn.sourceforge.net/gallery/?rev=13715&view=rev Log Message: ----------- was not parsing the 8 byte character-encoding for UserComment field, so results would contain a string like ASCII or UNICODE as part of the comment. added code to parse this out, but not actually doing any character set conversion now. Modified Paths: -------------- trunk/gallery2/modules/exif/lib/exifer/exif.inc Modified: trunk/gallery2/modules/exif/lib/exifer/exif.inc =================================================================== --- trunk/gallery2/modules/exif/lib/exifer/exif.inc 2006-05-22 19:27:12 UTC (rev 13714) +++ trunk/gallery2/modules/exif/lib/exifer/exif.inc 2006-05-22 21:30:56 UTC (rev 13715) @@ -533,7 +533,8 @@ $data = str_replace("00","",$data); } if($tag=="9286") { //UserComment - $data = rtrim($data); + $encoding = rtrim(substr($data, 0, 8)); + $data = rtrim(substr($data, 8)); } } else { $data = bin2hex($data); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |