Main Menu

Damaged metadata?

Started by Alyssa, September 02, 2014, 02:00:26 PM

Previous topic - Next topic

Alyssa

#15
Hi Hayo

Unfortunately even fixing the script doesn't change the result:


Update:
I tried the same script on the same image on a different machine(a laptop with Windows 8.1 installed), and I got the exact same error.

Hayo Baan

Hi Alyssa,

Hmm, I'm not sure what Microsoft has done to Unicode support, but it sure doesn't play by the rules...
Have you tried my second, more generic, version of the code to remove the characters already? That should definitely work.

If that still doesn't work, get a Mac ;)
Hayo Baan – Photography
Web: www.hayobaan.nl

Phil Harvey

#17
Alyssa,

You can bypass the Windows cmd-line character problems by using a UTF-8 aware text editor to write the desired string to a file (eg. "string.txt"), then using a command like this:

exiftool "-xpcomment<=string.txt" FILE

- Phil

Edit: I have added this to FAQ 18.
...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 ($).

Alyssa

Hi again, sorry for the late reply.

I tried again the second script Hayo suggested and it worked finally, I don't known why it wasn't working the first time I tried it, maybe I copied it wrong.

Thanks for helping me solving this issue :D