UNICODE file names...

Started by mmondry, January 05, 2017, 04:17:59 AM

Previous topic - Next topic

mmondry

There are TONS of search results on "UNICODE" but none answer my question.  My @ command file is formatted as below, and I would simply like it to return the expected results.  I tried -charset UTF8, and UTF16 before the -@, but I consistently receive a blank result.

-fast
-FilePath
-rating
-T
c:\photos\Hãy để chúng tôi có niềm vui.jpg
c:\photos\Pozwól nam bawić.jpg
c:\photos\ਸਾਡੇ ਨਾਲ ਮਜ਼ੇਦਾਰ ਹੈ ਕਰੀਏ.jpg
-execute

Hayo Baan

I reckon you saved the file in UTF8, so that should be fine. I think the problem is the filenames, you'll have to tell exiftool the character set of the filenames (as well). You do that using the −charset filename=CHARSET option. Have a look at the manual for more info.
Hayo Baan – Photography
Web: www.hayobaan.nl

mmondry

I'm already using -charset filename=UTF8 -@ {command file} syntax, but the results come back as zero length lines.

Phil Harvey

Would it be possible to zip your photos directory and send that and your -@ file to me for testing? My email is philharvey66 at gmail.com

- 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 ($).

Phil Harvey

#4
I got the files, thanks.

It works for me with this command:

exiftool -charset filename=utf8 -@ COMMANDS.TXT

However, the returned tags are empty for these reasons:

1. "Rating" doesn't exist in these files

2. "FilePath" unfortunately doesn't work for Windows Unicode file names

(Did I mention that Unicode file names on Windows are a huge pain in the ass?)

- Phil

Edit: Added missing -@ to command
...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 ($).

mmondry

Yup, that works!  Thanks for your quick response.

Phil Harvey

OK then, I'm confused.  Isn't that exactly the command you said you were using?

- 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 ($).