mt.encode('utf-8') might end up being wrong, HTTP Headers should only
be latin1 if I remember correctly.
Even though, probably, there aren't mime types which contain utf8 characters.
Also you should be able to use response.content_type =
'yourcontenttype' and response.headers['Content-Disposition']=...
instead of relying on response.headerlist.append, which is a bit
easier to read and write.
> --
> You received this message because you are subscribed to the Google Groups
> "TurboGears" group.
> To view this discussion on the web visit
>
https://groups.google.com/d/msg/turbogears/-/EIFdY1yODPgJ.
> To post to this group, send email to
turbo...@googlegroups.com.
> To unsubscribe from this group, send email to
>
turbogears+...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/turbogears?hl=en.