summaryrefslogtreecommitdiff
path: root/opml.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 /opml.php
parent981e8107ca3a95864a7a5c5d02da6c4da89a339a (diff)
mysql: set connection charset to utf-8
Diffstat (limited to 'opml.php')
-rw-r--r--opml.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/opml.php b/opml.php
index b1a62ab8c..ac236a64b 100644
--- a/opml.php
+++ b/opml.php
@@ -13,6 +13,9 @@
if (DB_TYPE == "pgsql") {
pg_query($link, "set client_encoding = 'utf-8'");
pg_set_client_encoding("UNICODE");
+ } else {
+ db_query($link, "SET NAMES utf8");
+ db_query($link, "SET CHARACTER SET utf8");
}
login_sequence($link);