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
Avoid UnicodeEncodeError when redirecting standalone output
NKcda9f8593f97
diff --git a/utils/standalone_searx.py b/utils/standalone_searx.pyindex b19df4bae..223163639 100755--- a/utils/standalone_searx.py+++ b/utils/standalone_searx.py@@ -25,6 +25,8 @@ path.append(realpath(dirname(realpath(__file__)) + '/../'))# initializationfrom json import dumpsfrom searx import settings+import sys+import codecsimport searx.queryimport searx.searchimport searx.engines@@ -97,5 +99,6 @@ result_container_json = {"paging": result_container.paging,"results_number": result_container.results_number()}+sys.stdout = codecs.getwriter("UTF-8")(sys.stdout)+sys.stdout.write(dumps(result_container_json, sort_keys=True, indent=4, ensure_ascii=False, encoding="utf-8", default=json_serial))-print(dumps(result_container_json, sort_keys=True, indent=4, ensure_ascii=False, encoding="utf-8", default=json_serial))