-stay_open mode, the `-charset filename=utf8` only work once

Started by HaujetZhao, October 21, 2021, 08:16:35 AM

Previous topic - Next topic

HaujetZhao

When using `-stay_open` mode, the `-charset filename=utf8` only work once.

I start the command with `exiftool  -stay_open True -@ -`, then I sent it args:

```
-createdate
文件01.jpg
-execute

-createdate
文件02.jpg
-execute
```

For the first file, it would be Okay, but when it comes to the second file, ExifTool will say the charset of the filename is not set.

Okay, I accept, so then I tried:

```
-charset filename=utf8
-createdate
文件01.jpg
-execute

-charset filename=utf8
-createdate
文件02.jpg
-execute
```

Then ExifTool will say `Warning: Tag 'charset' is not defined`

So I'm crushed. How can I set every filename their charset?

I think the there is a logic bug in the use of `-charset` when it comes to `-stay_open`.

Phil Harvey

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

HaujetZhao


Phil Harvey

I would suggest first reading the documentation for the option you are using (in this case -@) before checking the FAQ if you have a problem.

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

HaujetZhao

Quote from: Phil Harvey on October 21, 2021, 01:50:23 PM
I would suggest first reading the documentation for the option you are using (in this case -@) before checking the FAQ if you have a problem.

- Phil

Got it, thanks again!