I have a character set convertion problem with the Exif
module. As I am French, I am using accentued char is
these fields but the exif module is reading incorrectly
these chars , probably due to encoding (ISO-8851-15).
http://gallery.menalto.com/node/39271
http://gallery.menalto.com/node/45981
You will find in attachment a jpg file with the problem
the real comment is :
La Tremblade - Croisière sur la Seudre
The "è" in the word "Croisière" becomes "Croisi?re"
when read by g2.
I have applied the temporary fix below :
ExifHelper.class, line 440:
function getExifValue(&$source, $keyPath) {
$key = array_shift($keyPath);
if (!isset($source[$key])) {
return null;
}
if (empty($keyPath)) {
$tmpdata=str_replace("\0", '', $source[$key]);
return
mb_convert_encoding($tmpdata,"UTF-8",mb_detect_encoding($tmpdata
, 'UTF-8, ISO-8859-15'));
}
return ExifHelper::getExifValue($source[$key], $keyPath);
}
Nobody/Anonymous
None
Gallery 2
Public
|
Date: 2007-12-15 18:55
|
| Filename | Description | Download |
|---|---|---|
| img75_2.jpg | Photo with an exif comment bad interpreted by G2 | Download |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use