ExifTool Forum

ExifTool => Newbies => Topic started by: pauloHess on October 09, 2013, 01:01:20 PM

Title: UTF8 charset
Post by: pauloHess on October 09, 2013, 01:01:20 PM
I have a string with lots of utf-8 char. in it. I am trying to embed it  into an image, they don't show up right.
here is my example:

exiftool  -charset UTF8 -Title="La cvstodia d’oro : godvta nel vigilantissimo confalonierato dell’illvstrissimo signor senatore Francesco Ratta, e simboleggiata nel dilvisontvos.mo convito fatto all’ ill.mo publico and ecc.si sig.ri anziani il primo bimestre dell’anno 1693" 1.jpg

any idea how to get it right.
Title: Re: UTF8 charset
Post by: Phil Harvey on October 09, 2013, 01:05:58 PM
Your special characters are HTML character entities, not UTF-8.  So drop the -charset UTF8 and add -E to handle the HTML escaping.  See FAQ 10 (https://exiftool.org/faq.html#Q10) for more information.

- Phil
Title: Re: UTF8 charset
Post by: pauloHess on October 09, 2013, 01:12:47 PM
Yes, thanks , you are right.

Can I have both -charset utf8 and -E at the same time in an exiftool command?
the reason I am asking is that the same string may have some utf-8 char. too.

Thanks
Title: Re: UTF8 charset
Post by: Phil Harvey on October 09, 2013, 01:16:52 PM
Yes, but -charset UTF8 is the default, so specifying this does nothing.

- Phil
Title: Re: UTF8 charset
Post by: pauloHess on October 09, 2013, 01:39:13 PM
I double checked. after I added -E and ran again, Photoshop ignores those html characters (like d’), why?
Title: Re: UTF8 charset
Post by: Phil Harvey on October 09, 2013, 01:55:47 PM
I don't think that character U+0092 is the one you want.  This is a control character according to this chart (http://www.utf8-chartable.de).