Re: [sphinx-dev] Re: Some characters rendering wrongly in HTML output</span></a></span> </h1> <p class="darkgray font13"> <span class="sender pipe"><a href="/search?l=sphinx-dev@googlegroups.com&q=from:%22Friedrich+Romstedt%22" rel="nofollow"><span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">Friedrich Romstedt</span></span></a></span> <span class="date"><a href="/search?l=sphinx-dev@googlegroups.com&q=date:20111128" rel="nofollow">Mon, 28 Nov 2011 07:06:56 -0800</a></span> </p> </div> <div itemprop="articleBody" class="msgBody"> <!--X-Body-of-Message--> <pre>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.)</pre><pre> 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 <a rel="nofollow" href="http://groups.google.com/group/sphinx-dev?hl=en">http://groups.google.com/group/sphinx-dev?hl=en</a>. </pre> </div> <div class="msgButtons margintopdouble"> <ul class="overflow"> <li class="msgButtonItems"><a class="button buttonleft " accesskey="p" href="msg05281.html">Previous message</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="c" href="index.html#05282">View by thread</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="i" href="maillist.html#05282">View by date</a></li> <li class="msgButtonItems textalignright"><a class="button buttonright " accesskey="n" href="msg05288.html">Next message</a></li> </ul> </div> <a name="tslice"></a> <div class="tSliceList margintopdouble"> <ul class="icons monospace"> <li class="icons-email"><span class="subject"><a href="msg05269.html">[sphinx-dev] Some characters rendering wrongly in HTML ...</a></span> <span class="sender italic">Friedrich Romstedt</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg05273.html">[sphinx-dev] Re: Some characters rendering wrongly...</a></span> <span class="sender italic">Viktor Haag</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg05274.html">Re: [sphinx-dev] Re: Some characters rendering...</a></span> <span class="sender italic">Friedrich Romstedt</span></li> </ul></li> <li class="icons-email"><span class="subject"><a href="msg05275.html">[sphinx-dev] Re: Some characters rendering wrongly...</a></span> <span class="sender italic">Guenter Milde</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg05276.html">Re: [sphinx-dev] Re: Some characters rendering...</a></span> <span class="sender italic">Friedrich Romstedt</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg05277.html">Re: [sphinx-dev] Re: Some characters rende...</a></span> <span class="sender italic">Friedrich Romstedt</span></li> <li class="icons-email"><span class="subject"><a href="msg05278.html">Re: [sphinx-dev] Re: Some characters rende...</a></span> <span class="sender italic">Friedrich Romstedt</span></li> <li class="icons-email"><span class="subject"><a href="msg05279.html">[sphinx-dev] Re: Some characters rendering...</a></span> <span class="sender italic">Guenter Milde</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg05280.html">[sphinx-dev] Re: Some characters rende...</a></span> <span class="sender italic">Guenter Milde</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg05281.html">Re: [sphinx-dev] Re: Some charact...</a></span> <span class="sender italic">Georg Brandl</span></li> <li class="icons-email tSliceCur"><span class="subject">Re: [sphinx-dev] Re: Some charact...</span> <span class="sender italic">Friedrich Romstedt</span></li> </ul></li> </ul></li> <li class="icons-email"><span class="subject"><a href="msg05288.html">AW: [sphinx-dev] Re: Some characters rende...</a></span> <span class="sender italic">Lothar Braun</span></li> </ul> </ul> </ul> </ul> </div> <div class="overflow msgActions margintopdouble"> <div class="msgReply" > <h2> Reply via email to </h2> <form method="POST" action="/mailto.php"> <input type="hidden" name="subject" value="Re: [sphinx-dev] Re: Some characters rendering wrongly in HTML <title> output"> <input type="hidden" name="msgid" value="CAN06=Cx=PxK_DJzPd=V0bfgaRW8Qoo2kXbvHJL_-mQJthnzLiQ@mail.gmail.com"> <input type="hidden" name="relpath" value="sphinx-dev@googlegroups.com/msg05282.html"> <input type="submit" value=" Friedrich Romstedt "> </form> </div> </div> </div> <div class="aside" role="complementary"> <div class="logo"> <a href="/"><img src="/logo.png" width=247 height=88 alt="The Mail Archive"></a> </div> <form class="overflow" action="/search" method="get"> <input type="hidden" name="l" value="sphinx-dev@googlegroups.com"> <label class="hidden" for="q">Search the site</label> <input class="submittext" type="text" id="q" name="q" placeholder="Search sphinx-dev"> <input class="submitbutton" name="submit" type="image" src="/submit.png" alt="Submit"> </form> <div class="nav margintop" id="nav" role="navigation"> <ul class="icons font16"> <li class="icons-home"><a href="/">The Mail Archive home</a></li> <li class="icons-list"><a href="/sphinx-dev@googlegroups.com/">sphinx-dev - all messages</a></li> <li class="icons-about"><a href="/sphinx-dev@googlegroups.com/info.html">sphinx-dev - about the list</a></li> <li class="icons-expand"><a href="/search?l=sphinx-dev@googlegroups.com&q=subject:%22Re%5C%3A+%5C%5Bsphinx%5C-dev%5C%5D+Re%5C%3A+Some+characters+rendering+wrongly+in+HTML+%3Ctitle%3E+output%22&o=newest&f=1" title="e" id="e">Expand</a></li> <li class="icons-prev"><a href="msg05281.html" title="p">Previous message</a></li> <li class="icons-next"><a href="msg05288.html" title="n">Next message</a></li> </ul> </div> <div class="listlogo margintopdouble"> </div> <div class="margintopdouble"> </div> </div> </div> <div class="footer" role="contentinfo"> <ul> <li><a href="/">The Mail Archive home</a></li> <li><a href="/faq.html#newlist">Add your mailing list</a></li> <li><a href="/faq.html">FAQ</a></li> <li><a href="/faq.html#support">Support</a></li> <li><a href="/faq.html#privacy">Privacy</a></li> <li class="darkgray">CAN06=Cx=PxK_DJzPd=V0bfgaRW8Qoo2kXbvHJL_-mQJthnzLiQ@mail.gmail.com</li> </ul> </div> </body> </html>