Setting the console code page when invoked from File Explorer

Started by johnrellis, June 30, 2017, 07:09:37 PM

Previous topic - Next topic

johnrellis

In FAQ 18, Phil asked, "Unfortunately, I haven't been able to figure out how to change the code page for exiftool when launched via the Windows GUI. If anyone can figure out how to do this, please let me know."

The Windows API SetConsoleOutputCP() "sets the output code page used by the console associated with the calling process".  Perhaps ExifTool could call this to set the output code page to UTF-8 when it detects that the -k option has been included in the filename ("exiftool(-k).exe")?

Phil Harvey

Thanks for this suggestion.  I'll look into this when I get a chance.

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

johnrellis

I don't use exiftool(-k) on Windows, so it's not valuable to me personally.