summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-08-17 17:02:15 +0100
committerAndrew Dolgov <[email protected]>2007-08-17 17:02:15 +0100
commit70dcff6b3d681bbeae4b9536139426d6d60a46bd (patch)
tree413886e7218a99861123c1bf4eff6e3076a80711 /backend.php
parent981e8107ca3a95864a7a5c5d02da6c4da89a339a (diff)
mysql: set connection charset to utf-8
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/backend.php b/backend.php
index 24f3bba3b..c5757a2ff 100644
--- a/backend.php
+++ b/backend.php
@@ -49,6 +49,9 @@
if (DB_TYPE == "pgsql") {
pg_query("set client_encoding = 'UTF-8'");
pg_set_client_encoding("UNICODE");
+ } else {
+ db_query($link, "SET NAMES utf8");
+ db_query($link, "SET CHARACTER SET utf8");
}
$op = $_REQUEST["op"];