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

Sometimes you can Encode::Guess
  • 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 cheerful (Initiate) on Nov 05, 2008 at 14:55 UTC

    decode("Guess", $text) worked. Since I did not specify the suspect, trial-error leads to UTF-8.

    Since the un-encoded output looks fine as UTF-8, the original text is probably UTF-8 or ExifTool decoded it. But somehow perl does not know it when it tries to encode. Does the decode call just tell perl it's UTF-8?