Index: include/imagemagick_preview.php
===================================================================
--- include/imagemagick_preview.php	(révision 623)
+++ include/imagemagick_preview.php	(copie de travail)
@@ -83,6 +83,7 @@
 	{
 	mysql_connect($mysql_server,$mysql_username,$mysql_password,true);
 	mysql_select_db($mysql_db);
+	mysql_set_charset($mysql_charset);
 	}
 
 if (RUNNING_ASYNC)
@@ -95,4 +96,4 @@
 		}
 	}
     
-?>
\ No newline at end of file
+?>
Index: include/db.php
===================================================================
--- include/db.php	(révision 623)
+++ include/db.php	(copie de travail)
@@ -16,6 +16,13 @@
 header("Pragma: no-cache");   
 
 
+if (!function_exists('mysql_set_charset')) {
+  function mysql_set_charset($charset)
+  {
+    return sql_query(sprintf("SET NAMES '%s'", $charset));
+  }
+}
+
 # Error handling
 function errorhandler($errno, $errstr, $errfile, $errline)
 	{
@@ -56,6 +63,7 @@
 # *** CONNECT TO DATABASE ***
 mysql_connect($mysql_server,$mysql_username,$mysql_password);
 mysql_select_db($mysql_db);
+mysql_set_charset($mysql_charset);
 set_magic_quotes_runtime(0);
 
 # statistics
@@ -623,4 +631,4 @@
 	}
 
 
-?>
\ No newline at end of file
+?>
Index: include/config.default.php
===================================================================
--- include/config.default.php	(révision 623)
+++ include/config.default.php	(copie de travail)
@@ -12,6 +12,7 @@
 $mysql_username="root";		# MySQL username
 $mysql_password="";			# MySQL password
 $mysql_db="resourcespace";			# MySQL database name
+$mysql_charset="utf8"; # MySQL database connection charset
 
 # The path to the MySQL client binaries - e.g. mysqldump
 # (only needed if you plan to use the export tool)
@@ -566,4 +567,4 @@
 
 
 
-?>
\ No newline at end of file
+?>
