diff options
author | 2009-08-11 01:59:34 +0200 | |
---|---|---|
committer | 2009-08-11 01:59:34 +0200 | |
commit | cc5f63ea2345de5d6445ee23ad4ddd3f583a0b67 (patch) | |
tree | 17949a974fa2d00105e5b2ae4da4606a7911c11d | |
parent | Added "time added" column to packageproperties (diff) | |
download | collagen-cc5f63ea2345de5d6445ee23ad4ddd3f583a0b67.tar.gz collagen-cc5f63ea2345de5d6445ee23ad4ddd3f583a0b67.tar.bz2 collagen-cc5f63ea2345de5d6445ee23ad4ddd3f583a0b67.zip |
Changed view of attachment to use utf-8 charset
-rw-r--r-- | web/main/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/main/views.py b/web/main/views.py index 174453b..634ea4f 100644 --- a/web/main/views.py +++ b/web/main/views.py @@ -68,7 +68,7 @@ def view(request, category_name, pkg_name, pkg_ver): def view_attachment(request, attachment_id): try: at = Attachment.objects.get(pk=attachment_id) - return HttpResponse(at.content, mimetype=at.mimetype) + return HttpResponse(at.content, content_type="%s; charset=utf-8" % at.mimetype) except Attachment.DoesNotExist: raise Http404 |