Fix ascii media type for Python 3. Fix by 宋文武 (iyzsong)

This commit is contained in:
Christopher Allan Webber 2016-02-24 17:54:34 -08:00
parent 410ab9cacd
commit eb564614cb

View File

@ -24,7 +24,7 @@
<pre>
{%- autoescape False -%}
{{- request.app.public_store.get_file(
media.media_files['unicode']).read()|string -}}
media.media_files['unicode']).read().decode('utf-8')|string -}}
{%- endautoescape -%}
</pre>
</div>