From 9cc9fe5cf57b67cb09b6cb78c0688d4bfb8c666a Mon Sep 17 00:00:00 2001 From: Alexey Kasyanchuk Date: Mon, 6 Feb 2017 19:22:03 +0300 Subject: [PATCH] fix encoding --- sphinx.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sphinx.conf b/sphinx.conf index 857e55a..ca98f61 100644 --- a/sphinx.conf +++ b/sphinx.conf @@ -12,6 +12,7 @@ source files_index sql_db = btsearch sql_port = 3306 # optional, default is 3306 + sql_query_pre = SET NAMES utf8 sql_query_pre = REPLACE INTO sphinx_counter SELECT 1, MAX(fileid) FROM files sql_query = \ SELECT fls.fileid, fls.path, fls.size as filesize, \ @@ -74,7 +75,8 @@ source torrents_index sql_db = btsearch sql_port = 3306 # optional, default is 3306 - sql_query_pre = REPLACE INTO sphinx_counter SELECT 2, MAX(torrentid) FROM torrents + sql_query_pre = SET NAMES utf8 + sql_query_pre = REPLACE INTO sphinx_counter SELECT 2, MAX(torrentid) FROM torrents sql_query = \ SELECT torrents.torrentid, torrents.hash as hash, torrents.name as name, torrents.size as size, \ torrents.seeders, torrents.leechers, torrents.completed, \