ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: calberga on April 15, 2013, 10:13:41 AM

Title: "Warning: Some character(s) could not be encoded in Latin" -- but no data loss
Post by: calberga on April 15, 2013, 10:13:41 AM
In writing keywords, I have suddenly started getting the quoted error.  But the data contains no special characters, and is correctly written.  Further, identical data is written with no warning message. and example of the data involved is:

("Alberga, Katherine Ansell" 11534 8847 38993 33538)

I note that many (but not all) of the effected files have been "losslessly" rotated in IrfanView.
Title: Re: "Warning: Some character(s) could not be encoded in Latin" -- but no data loss
Post by: Phil Harvey on April 15, 2013, 10:24:38 AM
If you send me a sample file and the exact command you are using I should be able to figure this out.  My email is philharvey66 at gmail.com

- Phil
Title: Re: "Warning: Some character(s) could not be encoded in Latin" -- but no data loss
Post by: calberga on April 15, 2013, 11:47:01 AM
I will a little later this afternoon, thanks.
Title: Re: "Warning: Some character(s) could not be encoded in Latin" -- but no data loss
Post by: Phil Harvey on April 15, 2013, 01:51:38 PM
Thanks.

The warning is because the ProfileDescriptionML contains special characters that can't be encoded in Latin.  This occurs because you are using the -L option with an implied -tagsFromFile, which extracts all information in Latin encoding.  It doesn't matter that you're not using ProfileDescriptionML because ExifTool extracts everything when you use -tagsFromFile.

- Phil
Title: Re: "Warning: Some character(s) could not be encoded in Latin" -- but no data loss
Post by: calberga on April 15, 2013, 04:05:59 PM
That seems to be the source of the warning in all of the images that triggered it.  All taken other people.  Looks as if there area bunch of languages, including Japanese.

Thanks for letting me know that I can ignore that one!

I would be tempted to switch to something other than Latin-1, but it contains anything that I can type with US-International keyboard, and the simple minded text editor I use doesn't understand anything else.
Title: Re: "Warning: Some character(s) could not be encoded in Latin" -- but no data loss
Post by: Phil Harvey on April 15, 2013, 04:45:01 PM
If you drop the -L when copying Comment to FileName, you will avoid this warning.

The -L has no effect in this case anyway -- the Comment tag doesn't have a known encoding so ExifTool can't recode it anyway.  But even if Comment was recoded, you would have problems with non-Latin characters because ExifTool would convert them to "?", which is illegal in a file name anyway.  So -L is doubly useless here.

- Phil