Announcement

#1 2010-07-16 15:22:57

Polly
Translation Team
2010-01-15
60

IPTC and German Umlauts

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

 

#2 2010-07-16 22:32:48

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13313

Re: IPTC and German Umlauts

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

 

#3 2010-07-18 11:14:01

rvelices
Piwigo Team
2005-12-29
1960

Re: IPTC and German Umlauts

are you using a Mac ?
I think Mac uses a "Mac Roman" encoding which is neither iso-8859-1 nor utf-8

Offline

 

#4 2010-07-18 14:26:35

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13313

Re: IPTC and German Umlauts

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

 

#5 2010-07-19 09:26:54

Polly
Translation Team
2010-01-15
60

Re: IPTC and German Umlauts

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

 

#6 2010-07-19 10:39:45

rvelices
Piwigo Team
2005-12-29
1960

Re: IPTC and German Umlauts

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

 

#7 2010-07-19 10:58:33

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13313

Re: IPTC and German Umlauts

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

 

#8 2010-07-19 11:43:44

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13313

Re: IPTC and German Umlauts

I've been searching for an automatic detection algorithm, but found nothing. We could add a configuration parameter :

Code:

// 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

 

#9 2010-07-19 11:54:54

Polly
Translation Team
2010-01-15
60

Re: IPTC and German Umlauts

sounds good...
but automatic detection would be even better.

regards
  Polly

Offline

 

#10 2010-07-26 23:09:16

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13313

Offline

 

#11 2011-01-31 11:42:08

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13313

Re: IPTC and German Umlauts

To fix the bug I have released [extension by plg] IPTC from Mac

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2020 · Contact