OEM437 and OEM850 needed for names from command line

Started by HansS713, October 31, 2017, 05:43:35 AM

Previous topic - Next topic

HansS713

cmd passes filenames in OEM850 code page in e.g. German Windows, but exiftool does not know this encoding.

Even after cmd /u exiftool does not support dir names with e.g. umlauts without warning.

E.g.
for /d %N in (2017*) do exiftool -m -XMP-mwg-rs:all -o %d%f_XMP-mwg-rs.xmp -ext jpg -r "%~N"
gives lots of warnings:
Waring: FileName encoding not specified - ....

So for direct use in batches something like
-charset filename=OEM850
and
-charset filename=OEM437
would be needed.

PS.: Using command file is no option in many cases, since this will lead to other problems if the script is allowed to be started more than once in parallel and with left over command files.

Phil Harvey

#1
Thanks for this suggestion.

ExifTool 10.65 (to be released soon) will have support for DOSLatinUS (cp437) and DOSLatin1 (cp850).

- Phil

Edit: ExifTool 10.65 is now available.
...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 ($).