From 9340afd5d317bd20369ab27865112a9fb51c9b45 Mon Sep 17 00:00:00 2001 From: Tom Canac Date: Fri, 31 Jan 2014 20:10:50 +0100 Subject: [PATCH] comment.php now handle special caracters. UTF8 fixed --- index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index d4f03e7..8263d2e 100644 --- a/index.php +++ b/index.php @@ -103,14 +103,14 @@ function readEXIF($file) { $emodel = $exif_idf0['Model']; $efocal = $exif_idf0['FocalLength']; - list($x,$y) = split('/', $efocal); + list($x,$y) = preg_split('/', $efocal); $efocal = round($x/$y,0); $exif_exif = exif_read_data ($file,'EXIF' ,0 ); $eexposuretime = $exif_exif['ExposureTime']; $efnumber = $exif_exif['FNumber']; - list($x,$y) = split('/', $efnumber); + list($x,$y) = preg_split('/', $efnumber); $efnumber = round($x/$y,0); $eiso = $exif_exif['ISOSpeedRatings']; @@ -404,7 +404,7 @@ $comment_filepath = $currentdir . $file . "/comment.html"; if (file_exists($comment_filepath)) { $fd = fopen($comment_filepath, "r"); - $comment = utf8_encode(fread($fd,filesize ($comment_filepath))); // utf8_encode to convert from iso-8859 to UTF-8 + $comment = fread($fd,filesize ($comment_filepath)); fclose($fd); } //PROCESS TEMPLATE FILE