[foundation-web] Ensure MySQL returns things in UTF-8
- From: Olav Vitters <ovitters src gnome org>
- To: svn-commits-list gnome org
- Subject: [foundation-web] Ensure MySQL returns things in UTF-8
- Date: Sat, 6 Jun 2009 08:33:27 -0400 (EDT)
commit 44e48def1de8e0591a6efb9073557df96231da66
Author: Olav Vitters <olav bkor dhs org>
Date: Sat Jun 6 14:33:05 2009 +0200
Ensure MySQL returns things in UTF-8
---
foundation.gnome.org/vote/include/election-sql.php | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/foundation.gnome.org/vote/include/election-sql.php b/foundation.gnome.org/vote/include/election-sql.php
index 8f87d91..dd7ba79 100644
--- a/foundation.gnome.org/vote/include/election-sql.php
+++ b/foundation.gnome.org/vote/include/election-sql.php
@@ -46,6 +46,7 @@ function elec_sql_open () {
elec_sql_close ($handle);
return FALSE;
}
+ mysql_query ("SET NAMES 'utf8'", $handle);
return $handle;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]