https://bugs.kde.org/show_bug.cgi?id=505668

--- Comment #9 from Ludovic <[email protected]> ---
Sorry for the very late answer.

It took me some time to understand what happens because the Windows world can
be very strange...

Following this Exiftool Q&A https://exiftool.org/faq.html#Q18, I pass my
command console into UTF8 (chcp 65001).
Because without this, even IPTC oncoded in UTF8 was not displayed correctly in
the console.
Example with DSC02003.jpg that has been encoded in UTF8 and correctly displayed
jn Digikam:
>exiftool -iptc:all -charset filename=utf8   DSC02003.jpg
>Coded Character Set             : UTF8
>Date Created                    : 2013:08:04
>Time Created                    : 12:27:11+00:00
>Country-Primary Location Name   : France
>Country-Primary Location Code   : FRA
>City                            : Sainte-Gemme
>Sub-location                    : La Ferme de Magn├®
>Province-State                  : Nouvelle-Aquitaine
>Keywords                        : France, La Ferme de Magn├®, Sainte-Gemme, 
>Nouvelle-Aquitaine

After this pre-requisit, I am now able to display correctly my pictures that
has been encoded in latin1 
Example with 20250530_P7387.jpg that is not correctly displayed jn Digikam:
>exiftool -iptc:all -charset iptc=latin1   20250530_P7387.jpg
>Keywords                        : France, Hauts-de-France, Pierrefonds, Ethan 
>MARTIN, Frédérique MARTIN, Thais MARTIN
>By-line                         : Ludovic Martin
>Sub-location                    : Pierrefonds
>Province-State                  : Hauts-de-France
>Country-Primary Location Code   : FRA
>Country-Primary Location Name   : France
>Caption-Abstract                : C’est au tournant des 14 et 15è siècles que 
>Louis, duc d’Orléans (1372-1407) entreprend la construction du château de 
>Pierrefonds. Il est l’un des édifices les plus imposants et imprenables de son 
>époque. Partiellement détruit au 17è siècle, il est restauré au 19é siècle à 
>la demande de Napoléon III par  Viollet-le-Duc.
>Application Record Version      : 4
>Time Created                    : 12:52:33+02:00
>Object Name                     : Château de Pierrefonds

After some more tests, I discover that I don't need to specify the charset:
>exiftool -iptc:all    20250530_P7387.jpg
This command provides the same result as the previous one (with "-charset
iptc=latin1").

In fact, I finaly see in the exiftool documentation
https://exiftool.org/exiftool_pod.html#Input-output-text-formatting, in the
description of "-charset [[TYPE=]CHARSET]", that 'latin' is the default value
for iptc when IPTC:CodedCharacterSet is not defined:
>Other values of TYPE listed below are used to specify the internal encoding of 
>various meta information formats.
>TYPE       Description                                  Default
>---------  -------------------------------------------  -------
>EXIF       Internal encoding of EXIF "ASCII" strings    (none)
>ID3        Internal encoding of ID3v1 information       Latin
>IPTC       Internal IPTC encoding to assume when        Latin
>            IPTC:CodedCharacterSet is not defined
>Photoshop  Internal encoding of Photoshop IRB strings   Latin
>QuickTime  Internal encoding of QuickTime strings       MacRoman
>RIFF       Internal encoding of RIFF strings            0

Would it be possible that Digikam has the same defaulting than exiftool?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to