ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: johnrellis on June 30, 2017, 07:09:37 PM

Title: Setting the console code page when invoked from File Explorer
Post by: johnrellis on June 30, 2017, 07:09:37 PM
In FAQ 18 (https://exiftool.org/faq.html#Q18), 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() (https://msdn.microsoft.com/en-us/library/windows/desktop/ms686036(v=vs.85).aspx) "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")?
Title: Re: Setting the console code page when invoked from File Explorer
Post by: Phil Harvey on June 30, 2017, 10:13:14 PM
Thanks for this suggestion.  I'll look into this when I get a chance.

- Phil
Title: Re: Setting the console code page when invoked from File Explorer
Post by: johnrellis on June 30, 2017, 10:16:55 PM
I don't use exiftool(-k) on Windows, so it's not valuable to me personally.