coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: fatty_bear on January 15, 2007, 07:53:01 PM

Title: Display of extended characters like é
Post by: fatty_bear on January 15, 2007, 07:53:01 PM
How do I view accents in Coppermine?   For example "é" is being displayed in both Firefox and IE as a small box rather than é.

Here is an example. Look at the name André Dufault in the picture caption.
http://classof1981.rmcclub.ca/gallery/displayimage.php?album=2&pos=4

If you do "view source", you can see the accent is there properly in the html... but my browser does not display it properly. I am using IE 7 and Firefox 1.5.0.9

In my application, Coppermine is bridged to phpBB. The accents display fine in phpBB, so I don't think it is a browser issue. For what its worth, I think the host is using a windows server of some kind - and they installed Coppermine and did the bridging for me.

Thanks in advance.
Title: Re: Display of extended characters like é
Post by: Pascal YAP on January 15, 2007, 09:20:10 PM
Morning,

Maybe you started your CPG's install with ISO, and you change that for a new config who is now in UTF-8.
Use "Image Description" to correct "?" to "é" :-)
By chance you have only 22 pictures  ;D

And i see you used accentuated characters in file nane ! Bad idea !

PYAP

Title: Re: Display of extended characters like é
Post by: fatty_bear on January 16, 2007, 01:09:07 AM
Thanks for the reply.

I looked in the admin panel in Language & Charset, and Unicode (recomended) (UTF-8) is selected. Is ther another setting I am missing?

Interestingly, if I change the site language to french, the accents in the navigation text are visible, but the accents in picture captions still are not. What is different between them that would cause this?

Thanks for the comment on "no accents in the file names". I did not notice them before. I'll make that suggestion to the photographer who is uploading all the photos.  I'm just the site admin.


Title: Re: Display of extended characters like é
Post by: fatty_bear on January 16, 2007, 01:13:28 AM
one other piece of information I should tell you - those captions were input automatically by the iptc2db.php program to get IPTC data from teh photos. Could that be causing the problems?
http://forum.coppermine-gallery.net/index.php?topic=28718.0
Title: Re: Display of extended characters like é
Post by: Pascal YAP on January 16, 2007, 12:21:14 PM
Quotethose captions were input automatically by the iptc2db.php program to get IPTC data from teh photos. Could that be causing the problems?
This is the best info about your issue ! You must start by this way next time  ;)
Maybe iptc2db.php do not know how to extract accentuated characters.
i know nothing about this MOD...

PYAP
Title: Re: Display of extended characters like é
Post by: fatty_bear on January 16, 2007, 05:55:26 PM
Quote from: PYAP on January 16, 2007, 12:21:14 PM
Maybe iptc2db.php do not know how to extract accentuated characters.

... except the extended characters are visible if you do a view source, so I assumed it was not iptc2db.php

ANYONE HAVE ANY IDEAS?
Title: Re: Display of extended characters like é
Post by: fatty_bear on January 16, 2007, 05:56:40 PM
sorry for the caps. My fingers slpped  :P
Title: Re: Display of extended characters like é
Post by: fatty_bear on January 17, 2007, 02:37:25 AM
It does appear to be related to iptc2db.php... or perhaps to the program that the photographer used to add IPTC data to the photo.

As admin, if I edit files in the album list, I can change the photo description from the square to é and then everything is displayed properly...but if I run iptc2db.php it changes it all back again.  Weird problem. 
Title: Re: Display of extended characters like é
Post by: Joachim Müller on January 17, 2007, 07:41:35 AM
iptc2db.php probably doesn't add utf-8 encoded text, but iso8859-1 encoded text (just guessing though, as I don't know that app). Hence the "strange" chars. Little we could do to help you circumevent this issue. I suggest finding a tool that supports utf-8 encoded strings in IPTC data.