Unicode characters in Windows cmd

Started by henry, October 14, 2024, 07:00:38 PM

Previous topic - Next topic

henry

I'm not sure if this is a bug report or user error.

When setting a field via Windows cmd where the text includes a non-ASCII unicode character, exiftool does not properly handle the input.

C:\Users\henry>exiftool -ImageDescription="happy 😀" image.jpg
    1 image files updated

C:\Users\henry>exiftool -ImageDescription image.jpg
Image Description               : happy ??

C:\Users\henry>exiftool -ImageDescription="Cent ¢" image.jpg
    1 image files updated

C:\Users\henry>exiftool -ImageDescription image.jpg
Image Description               : Cent ó

Is there something I need to do to get exiftool to accept Unicode characters?

I'm using exiftool 12.98 on Windows 11 24H2. As far as I can tell, the Windows cmd shell supports Unicode characters just fine (if I run"ECHO 😀", I get the same emoji back.)

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