Hi Phil,
I'm experimenting a bit with -Lang option in my test (stay_open) application. I don't use various "use codepage..characterset" ExifTool options. I just take care, that correct encoded string is being used when writting/reading data with ExifTool, i.e.:
- for Exif, Ascii (Ansi, actually) encoded characters are used,
- for Xmp, Utf8 encoded characters are used.
-btw. this approach works very well in GUI.
Let's say I execute:
exiftool -exif:artist=Günther photo.jpg-here, as mentioned above, Ansi string is being sent to ExifTool.
Now, if I execute:
exiftool -exif:artist photo.jpg-I get correct (Ansi) tag name and it's value, as expected.
But, if I execute:
exiftool -lang de -exif:artist photo.jpg-then I get:
KĂĽnstler : Günther-here, I would expect to get
Künstler : Günther.
If I encode the whole
KĂĽnstler : Günther line into Utf8, I get tag name right, but then, converted tag value is wrong.
I assume, that in ExifTool, all translations are in Utf8. That's ok when dealing with Xmp, because whole output line is in Utf8 anyway. But for Exif, decoding is quite difficult, because in the same line, tag name is in Utf8, tag value however is in Ansi.
Maybe I am missing something or my characters de-coding process is wrong...
Any ideas?
Bogdan
PS: I've looked into ..Image/ExifTool/Lang/de.pm file and it is saved in Utf8. I've converted the file into Ansi, and the (Exif) problem is gone. But in this case, as expected, the problem appears for Xmp. If only Exif would allow Utf8...
My eyeballs just popped out! -that's all I can say.
Bogdan