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");
+ if (defined('MYSQL_CHARSET') && MYSQL_CHARSET) {
+ db_query($link, "SET NAMES " . MYSQL_CHARSET);
+ db_query($link, "SET CHARACTER SET " . MYSQL_CHARSET);
+ }
}
$op = $_REQUEST["op"];
// Enable experimental support for interface translations
// based on PHP-Gettext. This is of no much use right now.
- define('CONFIG_VERSION', 7);
+ define('MYSQL_CHARSET', '');
+ // Connection charset for MySQL. Only enable if having charset-related
+ // errors with MySQL (mangled characters, errors when updating feeds, etc).
+
+ define('CONFIG_VERSION', 8);
// Expected config version. Please update this option in config.php
// if necessary (after migrating all new options from this file).
msgstr ""
"Project-Id-Version: messages\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-08-21 18:35+0400\n"
+"POT-Creation-Date: 2007-08-21 18:36+0400\n"
"PO-Revision-Date: 2007-08-21 12:37+0200\n"
"Last-Translator: Thibaut Cousin <informatique@thibaut-cousin.net>\n"
"Language-Team: Français <fr@li.org>\n"
msgid "Return to Tiny Tiny RSS"
msgstr "Revenir à Tiny Tiny RSS"
+#: update.php:109
+msgid "Please backup your database before proceeding."
+msgstr ""
+
#: update.php:111
#, php-format
msgid ""
msgstr ""
"Project-Id-Version: 1.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-08-21 18:35+0400\n"
+"POT-Creation-Date: 2007-08-21 18:36+0400\n"
"PO-Revision-Date: 2007-08-18 15:14+0400\n"
"Last-Translator: Andrew Dolgov <cthulhoo@gmail.com>\n"
"Language-Team: Русский <ru@li.org>\n"
msgid "Return to Tiny Tiny RSS"
msgstr "Вернуться к Tiny Tiny RSS"
+#: update.php:109
+#, fuzzy
+msgid "Please backup your database before proceeding."
+msgstr "<b>Внимание:</b> Сохраните базу данных перед продолжением."
+
#: update.php:111
#, php-format
msgid ""
#~ msgid "Label search results"
#~ msgstr "Результаты поиска"
-#~ msgid "<b>Warning:</b> Please backup your database before proceeding."
-#~ msgstr "<b>Внимание:</b> Сохраните базу данных перед продолжением."
-
#~ msgid "Help"
#~ msgstr "Помощь"
msgstr ""
"Project-Id-Version: Tiny Tiny RSS1.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-08-21 18:35+0400\n"
+"POT-Creation-Date: 2007-08-21 18:36+0400\n"
"PO-Revision-Date: 2007-08-19 19:03+0800\n"
"Last-Translator: sluke <sluke520@yahoo.com.cn>\n"
"Language-Team: hicode.org <sluke520@yahoo.com.cn>\n"
msgid "Return to Tiny Tiny RSS"
msgstr "返回Tiny Tiny RSS"
+#: update.php:109
+msgid "Please backup your database before proceeding."
+msgstr ""
+
#: update.php:111
#, php-format
msgid ""
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");
+ if (defined('MYSQL_CHARSET') && MYSQL_CHARSET) {
+ db_query($link, "SET NAMES " . MYSQL_CHARSET);
+ db_query($link, "SET CHARACTER SET " . MYSQL_CHARSET);
+ }
}
login_sequence($link);
<?php
require_once "functions.php";
- define('EXPECTED_CONFIG_VERSION', 7);
+ define('EXPECTED_CONFIG_VERSION', 8);
define('SCHEMA_VERSION', 20);
if (!file_exists("config.php")) {
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");
+ if (defined('MYSQL_CHARSET') && MYSQL_CHARSET) {
+ db_query($link, "SET NAMES " . MYSQL_CHARSET);
+ db_query($link, "SET CHARACTER SET " . MYSQL_CHARSET);
+ }
}
login_sequence($link);
}
if (!$op) {
- print_warning("Please backup your database before proceeding.");
+ print_warning(__("Please backup your database before proceeding."));
print "<p>" . T_sprintf("Your Tiny Tiny RSS database needs update to the latest version (<b>%d</b> to <b>%d</b>).", $version, $latest_version) . "</p>";
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");
+ if (defined('MYSQL_CHARSET') && MYSQL_CHARSET) {
+ db_query($link, "SET NAMES " . MYSQL_CHARSET);
+ db_query($link, "SET CHARACTER SET " . MYSQL_CHARSET);
+ }
}
$last_purge = 0;
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");
+ if (defined('MYSQL_CHARSET') && MYSQL_CHARSET) {
+ db_query($link, "SET NAMES " . MYSQL_CHARSET);
+ db_query($link, "SET CHARACTER SET " . MYSQL_CHARSET);
+ }
}
$result = db_query($link, "SELECT id FROM ttrss_users");
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");
+ if (defined('MYSQL_CHARSET') && MYSQL_CHARSET) {
+ db_query($link, "SET NAMES " . MYSQL_CHARSET);
+ db_query($link, "SET CHARACTER SET " . MYSQL_CHARSET);
+ }
}
function getVirtualFeeds($msg) {