Support > cpg1.5 language
Danish Characters Issues - UTF-8
Αndré:
It's quite hard to test it with existing files. If you can, install a second test gallery on your server. Make sure the database character set is set to utf8 and try if it makes a difference to use the additional dbcharset config line or not.
Can you please attach one or more images with metadata, that makes trouble? So I can perform some own tests. Thanks.
mboesen:
Hi André
Sorry hadn't seen your answer. Apparently I don't get an email notification... gotta check that out ;-)
I did add the line and uploaded new photos without luck. Will look into making a new DB but am not that hardcore in all this DB stuff so I am afraid to to mess up the whole thing...
But until then I will add a few files for you to use for testing....
Thanks alot
Michael
mboesen:
Still having huge problems with this. Tried to run a PHP check in Coppermine and found this
iconv
iconv support enabled
iconv implementation glibc
iconv library version 1.11
Directive Local Value Master Value
iconv.input_encoding ISO-8859-1 ISO-8859-1
iconv.internal_encoding ISO-8859-1 ISO-8859-1
iconv.output_encoding ISO-8859-1 ISO-8859-1
Could that be the problem? And if so is that something I have to change on my webhost server?
Michael
Αndré:
Sorry I have overlooked this thread. I just did some testing. The IPTC data in your files is htmlentitiy encoded, which seems to be the cause.
The following works for me. Open include/picmgmt.inc.php, find
--- Code: --- $title = (isset($iptc['Headline'])) ? $iptc['Headline'] : $title;
$caption = (isset($iptc['Caption'])) ? $iptc['Caption'] : $caption;
$keywords = (isset($iptc['Keywords'])) ? implode($CONFIG['keyword_separator'], $iptc['Keywords']) : $keywords;
--- End code ---
and replace with
--- Code: --- $title = (isset($iptc['Headline'])) ? html_entity_decode($iptc['Headline']) : $title;
$caption = (isset($iptc['Caption'])) ? html_entity_decode($iptc['Caption']) : $caption;
$keywords = (isset($iptc['Keywords'])) ? implode($CONFIG['keyword_separator'], html_entity_decode($iptc['Keywords'])) : $keywords;
--- End code ---
mboesen:
Fantastic... that actually worked.....
except for one little thing. Now it doesn't include keywords at all?!
But thank you so much.... many many hours of searching the internet and trying out stuff has ended ;-)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version