summaryrefslogtreecommitdiff
path: root/mobile
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-08-26 11:51:17 +0100
committerAndrew Dolgov <[email protected]>2007-08-26 11:51:17 +0100
commitda3427a03b2e15a545acc1dbd9a9c176bc7d8ad8 (patch)
tree340a01ae508608e1d9d023af5efa1647763857c7 /mobile
parentc7ddac5c656b129b91559b1a8a80c03b31eb3074 (diff)
mobile: fix mysql charset
Diffstat (limited to 'mobile')
-rw-r--r--mobile/tt-rss.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/mobile/tt-rss.php b/mobile/tt-rss.php
index 637e5d559..a1e96d558 100644
--- a/mobile/tt-rss.php
+++ b/mobile/tt-rss.php
@@ -13,6 +13,16 @@
$link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
+ if (DB_TYPE == "pgsql") {
+ pg_query("set client_encoding = 'UTF-8'");
+ pg_set_client_encoding("UNICODE");
+ } else {
+ if (defined('MYSQL_CHARSET') && MYSQL_CHARSET) {
+ db_query($link, "SET NAMES " . MYSQL_CHARSET);
+// db_query($link, "SET CHARACTER SET " . MYSQL_CHARSET);
+ }
+ }
+
login_sequence($link, true);
/* perform various redirect-needing subops */