summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2017-12-08 21:39:59 +0100
committerAdam Tauber <asciimoo@gmail.com>2017-12-08 21:39:59 +0100
commit7061eb91afc575176490b797c4e4e4c26a13f764 (patch)
tree4cf7f3959742accecbe83202048875ba7875349c
parent49b845051f027cf9d29a20821968103a0f55c9d9 (diff)
downloadsearxng-7061eb91afc575176490b797c4e4e4c26a13f764.tar.gz
searxng-7061eb91afc575176490b797c4e4e4c26a13f764.zip
[fix] use proper encoding with both py2/3 - closes #1094
-rw-r--r--searx/templates/simple/404.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/templates/simple/404.html b/searx/templates/simple/404.html
index 1843c9892..11d604313 100644
--- a/searx/templates/simple/404.html
+++ b/searx/templates/simple/404.html
@@ -3,7 +3,7 @@
<div class="center">
<h1>{{ _('Page not found') }}</h1>
{% autoescape false %}
- <p>{{ _('Go to %(search_page)s.', search_page='<a href="{}">{}</a>'.decode('utf-8').format(url_for('index'), _('search page'))) }}</p>
+ <p>{{ _('Go to %(search_page)s.', search_page=unicode('<a href="{}">{}</a>').format(url_for('index'), _('search page'))) }}</p>
{% endautoescape %}
</div>
{% endblock %}