From: Christopher Allan Webber Date: Thu, 25 Feb 2016 01:54:34 +0000 (-0800) Subject: Fix ascii media type for Python 3. Fix by 宋文武 (iyzsong) X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=eb564614cb0624fcddcbfae8314ec624d9ed0741;p=mediagoblin.git Fix ascii media type for Python 3. Fix by 宋文武 (iyzsong) --- 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 -%}