in reply to Re: How to encode for non-unicode output
in thread How to encode for non-unicode output

ExifTool use UTF-8 as default. If I print it out w/o encoding, the text is correct with charset set to UTF-8. So the decoding is done, or the source is UTF-8.
  • Comment on Re^2: How to encode for non-unicode output

Replies are listed 'Best First'.
Re^3: How to encode for non-unicode output
by moritz (Cardinal) on Nov 05, 2008 at 15:55 UTC
    If the source is UTF-8, most string operations (like encoding into a specified character encoding) behaves very differently in the two cases (decoded or not decoded).

    If it's indeed decoded, encode($destination_encoding, $string) will work (but you still need to know in which encoding you want to store it).