Procházet zdrojové kódy

[fix] use proper encoding with both py2/3 - closes #1094

Adam Tauber před 7 roky
rodič
revize
7061eb91af
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      searx/templates/simple/404.html

+ 1
- 1
searx/templates/simple/404.html Zobrazit soubor

@@ -3,7 +3,7 @@
3 3
 <div class="center">
4 4
     <h1>{{ _('Page not found') }}</h1>
5 5
     {% autoescape false %}
6
-    <p>{{ _('Go to %(search_page)s.', search_page='<a href="{}">{}</a>'.decode('utf-8').format(url_for('index'), _('search page'))) }}</p>
6
+    <p>{{ _('Go to %(search_page)s.', search_page=unicode('<a href="{}">{}</a>').format(url_for('index'), _('search page'))) }}</p>
7 7
     {% endautoescape %}
8 8
 </div>
9 9
 {% endblock %}