From da3427a03b2e15a545acc1dbd9a9c176bc7d8ad8 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 26 Aug 2007 11:51:17 +0100 Subject: [PATCH] mobile: fix mysql charset --- mobile/tt-rss.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mobile/tt-rss.php b/mobile/tt-rss.php index 637e5d55..a1e96d55 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 */ -- 2.39.5