Posted on 2005-10-17 15:50:01-07 by exiftool in response to 1183
Re: Problem using WriteInfo
Hi Thorsten,

I'm not sure why this gives an error while all my other dynamic links work fine (all ExifTool modules are linked dyamically).

I recently added the Encode use (in version 5.67). It fixes a problem if the users passes UTF8-encoded strings via the API, but if you're going through the exiftool script, this isn't a problem. The Encode module should be standard with Perl 5.8 or greater, so I'm surprised you get this error. However, maybe we can avoid this error by wrapping the 'require' in an 'eval'. Try this:

Replace the following lines (124 and 125) in lib/Image/ExifTool/Writer.pl require Encode; Encode::_utf8_off($value); with eval 'require Encode' and Encode::_utf8_off($value);

If this works for you, I'll make this change to the official version.

Direct Responses: 1185 | Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.