Explorar o código

HUE-1574 [beeswax] ASCII error on query page

thinker0 %!s(int64=12) %!d(string=hai) anos
pai
achega
17cb57b7d6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      desktop/core/src/desktop/lib/django_mako.py

+ 1 - 1
desktop/core/src/desktop/lib/django_mako.py

@@ -64,7 +64,7 @@ class DesktopLookup(TemplateCollection):
                             output_encoding=i18n.get_site_encoding(),
                             input_encoding=i18n.get_site_encoding(),
                             encoding_errors=ENCODING_ERRORS,
-                            default_filters=['unicode', 'escape'], 
+                            default_filters=['decode.utf8', 'unicode', 'escape'],
                             imports=IMPORTS)
     # TODO(philip): Make a django_aware default filter, that understands
     # django safe strings.  See http://www.makotemplates.org/docs/filtering.html.