character encoding

Started by fireport, July 06, 2012, 03:07:24 AM

Previous topic - Next topic

fireport

I guys, I am writing a tool to reverse geogode image, but I have a probelm with address with non ascii characters. For example if my photo was taken to
Calle de Alcalá 41-43 Madrid Spain I write the tag
$success = $exifTool->SetNewValue("XMP:Location", $address);
when I read the info, I see
exiftool -Location ../Dropbox/madrid/P1000018.JPG
Location                        : Calle de Alcalá 41-43

I need to use
exiftool -L -Location ../Dropbox/madrid/P1000018.JPG
Location                        : Calle de Alcalá 41-43

to display correct info
This behaviour make problem with the windows application that watermark the wrong address info to photo.
Do you have some suggestion ?

Phil Harvey

The -L is necessary if your Windows console is using Windows Latin1 encoding. (which is common)

It looks like you wrote the information correctly.  Read FAQ number 10 and 18 for more information
...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 ($).