freenet/fred-staging — pull request #64 by Bombe (2011-11-12 00:15:51+00:00)
Title: Retain charset information

When requesting a file that is not deemed safe to display (e.g. “text/xml; charset=utf-8”) the option “display as plain text” will only use the content type “text/plain,” discarding the charset information, leading to garbled output. This patch will look for a charset in the expected MIME type and transfer that to the “text/plain” media type for the “display as plain text” link.