SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
Make Python 3 able to read settings files with Unicode characters
Joseph Nuthalapatibdc803e185e1
diff --git a/searx/__init__.py b/searx/__init__.pyindex a57588cd3..84a377d7d 100644--- a/searx/__init__.py+++ b/searx/__init__.py@@ -50,7 +50,7 @@ if not settings_path:raise Exception('settings.yml not found')# load settings-with open(settings_path) as settings_yaml:+with open(settings_path, 'rb') as settings_yaml:settings = load(settings_yaml)'''diff --git a/searx/engines/__init__.py b/searx/engines/__init__.pyindex 7a9cc56a2..bec8de3a8 100644--- a/searx/engines/__init__.py+++ b/searx/engines/__init__.py@@ -36,7 +36,7 @@ engines = {}categories = {'general': []}-languages = loads(open(engine_dir + '/../data/engines_languages.json').read())+languages = loads(open(engine_dir + '/../data/engines_languages.json', 'rb').read())engine_shortcuts = {}engine_default_args = {'paging': False,diff --git a/searx/engines/currency_convert.py b/searx/engines/currency_convert.pyindex 1bb4e60c9..34a9af678 100644--- a/searx/engines/currency_convert.py+++ b/searx/engines/currency_convert.py@@ -94,7 +94,7 @@ def load():global dbcurrent_dir = os.path.dirname(os.path.realpath(__file__))- json_data = open(current_dir + "/../data/currencies.json").read()+ json_data = open(current_dir + "/../data/currencies.json", 'rb').read()db = json.loads(json_data)