Hey everybody,
today i saw that the IPTC data is not able to display german umlauts.
as you can see here, only nice squares are displayed instead.
http://www.peter-reiser.de/bilddatenban … tadata.php
Is there a trick to display umlauts correct?
Thanks!
regards,
Polly
Offline
Hi Polly, nice to read you again :-)
I thought you're problem was related to [Bugtracker] ticket 1663 in which rvelices fixed an encoding bug that was introduced in Piwigo 2.1. I reproduce the bug with Piwigo 2.1 BUT I thought there would be no bug with Piwigo 2.0 so I tested on Piwigo 2.0.10 and it doesn't work, there is also the umlaut problem!
* 2.0.10 : problem
* 2.1.2 : problem
How do you add the IPTC tags?
Do you know the encoding used by your software?
Offline
are you using a Mac ?
I think Mac uses a "Mac Roman" encoding which is neither iso-8859-1 nor utf-8
Offline
rvelices wrote:
are you using a Mac ?
Yes, he is: Adobe [Software] => Adobe Photoshop CS3 Macintosh.
2 weeks ago, I have discussed with a Mac user that had problems with accents when he was using his Mac to fill IPTC tags.
Offline
Hello,
- in this case IPTC data is added through adobe lightroom
- yes i'm using a Mac
- piwigo version 2.1.2
- default encoding used by adobe lightroom (dont know which encoding)
Problems:
- piwigo 2.1.1 -> Cutting the tag right before the umlaut
- piwigo 2.1.2 -> see the attached picture
Thanks for your help.
Polly
Last edited by Polly (2010-07-19 09:31:24)
Offline
the encoding is Western MacRoman (choosing this encoding in FF, displays the right data)
as of now there is absolutely no support for Mac Roman. However that would not be that difficult to manage. just need a developper ready to "learn" mac roman and decode that into utf-8 ...
Offline
rvelices wrote:
the encoding is Western MacRoman (choosing this encoding in FF, displays the right data)
as of now there is absolutely no support for Mac Roman. However that would not be that difficult to manage. just need a developper ready to "learn" mac roman and decode that into utf-8 ...
In the source code you indeed wrote:
rvelices in Piwigo source code wrote:
// apparently mac uses some MacRoman crap encoding. I don't know
// how to detect it so a plugin should do the trick.
I just found a MacRoman_to_utf8 function and it works well with Polly photo but it doesn't solve the automatic detection question.
Offline
I've been searching for an automatic detection algorithm, but found nothing. We could add a configuration parameter :
// what is the encoding use by the software you use to add IPTC metadata? // "auto" will detect "utf-8" or "iso-8859-1". Set it to "macintosh" if you // use Adobe products with your Mac $conf['iptc_encoding'] = "auto";
Offline
sounds good...
but automatic detection would be even better.
regards
Polly
Offline
To fix the bug I have released [extension by plg] IPTC from Mac
Offline