mysql: disable utf8

This commit is contained in:
Andrew Dolgov 2007-08-21 06:35:24 +01:00
parent 150b4a2ca5
commit c1879099e1
7 changed files with 14 additions and 14 deletions

View File

@ -50,8 +50,8 @@
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");
// db_query($link, "SET NAMES utf8");
// db_query($link, "SET CHARACTER SET utf8");
}
$op = $_REQUEST["op"];

View File

@ -14,8 +14,8 @@
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");
// db_query($link, "SET NAMES utf8");
// db_query($link, "SET CHARACTER SET utf8");
}
login_sequence($link);

View File

@ -1,5 +1,5 @@
SET NAMES utf8;
SET CHARACTER SET utf8;
-- SET NAMES utf8;
-- SET CHARACTER SET utf8;
drop table if exists ttrss_version;
drop table if exists ttrss_labels;

View File

@ -14,8 +14,8 @@
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");
// db_query($link, "SET NAMES utf8");
// db_query($link, "SET CHARACTER SET utf8");
}
login_sequence($link);

View File

@ -66,8 +66,8 @@
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");
// db_query($link, "SET NAMES utf8");
// db_query($link, "SET CHARACTER SET utf8");
}
$last_purge = 0;

View File

@ -27,8 +27,8 @@
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");
// db_query($link, "SET NAMES utf8");
// db_query($link, "SET CHARACTER SET utf8");
}
$result = db_query($link, "SELECT id FROM ttrss_users");

View File

@ -23,8 +23,8 @@
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");
// db_query($link, "SET NAMES utf8");
// db_query($link, "SET CHARACTER SET utf8");
}
function getVirtualFeeds($msg) {