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"];
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);
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);
$owner_uid = $_SESSION["uid"];
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");
}
$last_purge = 0;
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");
}
$result = db_query($link, "SELECT id FROM ttrss_users");
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");
}
function getVirtualFeeds($msg) {