|
@@ -19,6 +19,7 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >.
|
19
|
19
|
import sys
|
20
|
20
|
import threading
|
21
|
21
|
from os.path import realpath, dirname
|
|
22
|
+from io import open
|
22
|
23
|
from flask_babel import gettext
|
23
|
24
|
from operator import itemgetter
|
24
|
25
|
from json import loads
|
|
@@ -36,7 +37,7 @@ engines = {}
|
36
|
37
|
|
37
|
38
|
categories = {'general': []}
|
38
|
39
|
|
39
|
|
-languages = loads(open(engine_dir + '/../data/engines_languages.json', 'rb').read())
|
|
40
|
+languages = loads(open(engine_dir + '/../data/engines_languages.json', 'r', encoding='utf-8').read())
|
40
|
41
|
|
41
|
42
|
engine_shortcuts = {}
|
42
|
43
|
engine_default_args = {'paging': False,
|