2011/11/25 Guenter Milde <mi...@users.sf.net>: > Found out more: > > * if I download the page and open the copy from file, title and "section > tags" are OK. > > * if i manually set the encoding (in my Firefox it is Ansicht>Zeichenkodierung > and I click at the already selected utf-8), the problem vanishes as well. > > (The "Seiteninformationen" show ``Coding: ISO-8859-1`` before and > ``Coding: UTF-8`` after this change.)
Very good research! Thank you! > Guess: > The http server sends some header that makes the browser reading the > document as ISO-8859-1 (latin1) encoded. > > Solutions: > * configure the server to announce utf-8 if the doc is utf-8 encoded, or > * configure Sphinx to write "ascii" or "latin1" encoded documents > (in Docutils the setting is "output-encoding", should be something > similar in Sphinx) This solved it. Our server is configured to send an override of the encoding information given in the meta tag of the html. There are apparently some historic reasons for this, so we cannot safely break it. This means, I cannot specify the encoding in the meta tag as it is done now; that tag is ignored. I specified the encoding for .html files via an .htaccess file with ``AddCharset utf-8 .html``, with the FileInfo in apache allowed for override via .htaccess files. This is the only solution I found; setting ``AddDefaultCharset Off`` in that .htaccess file does not solve the problem, although it should and I don't know why it doesn't. So at least it's working now and it has nothing to do with Sphinx; Sphinx is doing al-right ... Notice that one needs to clean the Firefox cache (for the appropriate time period) until it notices the change in the HTTP request header. If I didn't, it didn't change the encoding although it should. Looks like a bug in Firefox to me, although there might be some reason for perceiving it as a feature I don't know of ... Friedrich -- You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to sphinx-dev@googlegroups.com. To unsubscribe from this group, send email to sphinx-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.