[openssl-dev] .txt files on https://openssl.org/ need Content-Type: text/plain; charset=utf-8

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Mar 19 15:48:10 UTC 2015


Thanks for the release today!  This is a trivial bug report, but i figure

I noticed that the advisory uses UTF-8, but it is being served with an
unadorned "Content-Type: text/plain" header:

$ (wget -O- -q -S https://openssl.org/news/secadv_20150319.txt | file -) 2>&1 | egrep 'stdin|Content-Type'
  Content-Type: text/plain
/dev/stdin: UTF-8 Unicode text
$  

since most folks consider text/plain to default to iso-8859-1, that
means that Emilia Käsper's name is rendered as Emilia Käsper.

You can fix this by configuring the openssl.org webserver to serve
text/plain files (or at least this text/plain file) with charset=utf-8.

If you know that all the content is UTF-8 encoded, you can just add the
following line to your apache config:

  AddDefaultCharset utf-8

https://httpd.apache.org/docs/2.4/mod/core.html#adddefaultcharset

Regards,

        --dkg

PS if there's a better place to report issues with the web site, please
   let me know.


More information about the openssl-dev mailing list