Main Menu

UTF8 charset

Started by pauloHess, October 09, 2013, 01:01:20 PM

Previous topic - Next topic

pauloHess

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.

Phil Harvey

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 for more information.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

pauloHess

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

Phil Harvey

Yes, but -charset UTF8 is the default, so specifying this does nothing.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

pauloHess

I double checked. after I added -E and ran again, Photoshop ignores those html characters (like d’), why?

Phil Harvey

I don't think that character U+0092 is the one you want.  This is a control character according to this chart.
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).