ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: henry on October 14, 2024, 07:00:38 PM

Title: Unicode characters in Windows cmd
Post by: henry on October 14, 2024, 07:00:38 PM
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.)
Title: Re: Unicode characters in Windows cmd
Post by: Phil Harvey on October 15, 2024, 07:37:54 AM
FAQ 10 (https://exiftool.org/faq.html#Q10) and FAQ 18 (https://exiftool.org/faq.html#Q18) explain this issue in detail.

- Phil