-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Special characters displayed wrongly #794
Comments
Did some further testing. Saved more person-metadata to the using "Tag That Photo". This makes the display correct in PiGallery. Once the data is rewritten by exiftool, PiGallery displays it wrongly. This goes for both exiftool Windows executable and the ubuntu version under WSL WSL (ubuntu)
cmd.exe (windows 10)
When sorting and comparing the exif data as displayed by exiftool, there are no differences. This is confusing, because I think "Tag That Photo" uses exiftool under the hood |
I had the chance to play around a bit. Converting variable "name" in line 487 of MetaDataLoader.ts from Ascii to utf-8 at least seems to fix the problem when viewed in the log. Without this conversion the same wrong characters show up in the log, as show up in the UI
So it could be that the library that reads the metadata assumes that it is ascii-encoded, which is why the conversion works. According to https://exiftool.org/TagNames/MWG.html, the MWG group recommends ASCII, but exiftool uses UTF-8. This may be the cause of the assumed ASCII format.
I'm not yet comfortable enough with the code to suggest a solution and create pull request with a correction, but wanted to share my findings. |
Fixed with #826 |
Describe the bug
Danish letters Ææ, Øø and Åå and German ü - and probably other characters are not displayed correctly in the user interface when saved as "Region Person Display Name" or "Region Name", not sure which one is actually read. The metadata is added by DigiKam 8.1.0, but as far as I can gather, it is stored as UTF-8.
See screenshot and attached photo (borrowed from wikimedia)
exiftool output:
Photo/video (optional) that causes the bug
Screenshot
Note how the Keywords or XP Keywords are displayed correctly
Used app version:
The text was updated successfully, but these errors were encountered: