summaryrefslogtreecommitdiff
path: root/mobile/tt-rss.php
diff options
context:
space:
mode:
Diffstat (limited to 'mobile/tt-rss.php')
-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 */