mysql: set connection charset to utf-8
This commit is contained in:
parent
981e8107ca
commit
70dcff6b3d
|
@ -49,6 +49,9 @@
|
|||
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"];
|
||||
|
|
3
opml.php
3
opml.php
|
@ -13,6 +13,9 @@
|
|||
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);
|
||||
|
|
|
@ -13,8 +13,11 @@
|
|||
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"];
|
||||
|
|
|
@ -65,6 +65,9 @@
|
|||
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;
|
||||
|
|
|
@ -26,6 +26,9 @@
|
|||
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");
|
||||
|
|
|
@ -22,6 +22,9 @@
|
|||
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) {
|
||||
|
|
Loading…
Reference in New Issue