From eb564614cb0624fcddcbfae8314ec624d9ed0741 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Wed, 24 Feb 2016 17:54:34 -0800 Subject: [PATCH] =?utf8?q?Fix=20ascii=20media=20type=20for=20Python=203.?= =?utf8?q?=20=20Fix=20by=20=E5=AE=8B=E6=96=87=E6=AD=A6=20(iyzsong)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- mediagoblin/templates/mediagoblin/media_displays/ascii.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediagoblin/templates/mediagoblin/media_displays/ascii.html b/mediagoblin/templates/mediagoblin/media_displays/ascii.html index 56039980..7cef5e80 100644 --- a/mediagoblin/templates/mediagoblin/media_displays/ascii.html +++ b/mediagoblin/templates/mediagoblin/media_displays/ascii.html @@ -24,7 +24,7 @@
         {%- autoescape False -%}
         {{- request.app.public_store.get_file(
-               media.media_files['unicode']).read()|string -}}
+               media.media_files['unicode']).read().decode('utf-8')|string -}}
         {%- endautoescape -%}
       
-- 2.25.1