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:%22Georg+Brandl%22" rel="nofollow"><span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">Georg Brandl</span></span></a></span> <span class="date"><a href="/search?l=sphinx-dev@googlegroups.com&q=date:20111125" rel="nofollow">Fri, 25 Nov 2011 22:18:19 -0800</a></span> </p> </div> <div itemprop="articleBody" class="msgBody"> <!--X-Body-of-Message--> <pre>-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 25.11.2011 22:17, schrieb Guenter Milde: > On 2011-11-25, Guenter Milde wrote: >> On 2011-11-25, Friedrich Romstedt wrote: >>> Am 25.11.2011 um 08:44 schrieb Guenter Milde <mi...@users.sf.net>: >>>> On 2011-11-24, Friedrich Romstedt wrote: > >>>>> I'm experiencing some problem with Sphinx 1.1.2 (and also an >>>>> earlier version from July), that some characters in my HTML <title> >>>>> are occuring as strange Unicode character sequences in the HTML. >>>>> Here's an example: > >>>>> <a rel="nofollow" href="http://www.roentgen.physik.uni-goettingen.de/~fromstedt/">http://www.roentgen.physik.uni-goettingen.de/~fromstedt/</a> > >>>>> Watch the title displayed in the browser (not the headline, but >>>>> the title). The two-character sequence is hardcoded like this in >>>>> the HTML, apparently (inspection with Firefox "Show Source"). > >> I cannot tell the reason. > > 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.) > > Guess: The http server sends some header that makes the browser reading > the document as ISO-8859-1 (latin1) encoded.</pre><pre> That would be my guess too. > Solutions: * configure the server to announce utf-8 if the doc is utf-8 > encoded, or That would be the preferred solution. > * configure Sphinx to write "ascii" or "latin1" encoded documents (in > Docutils the setting is "output-encoding", should be something similar in > Sphinx) Sphinx has html_output_encoding. cheers, Georg -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iEYEARECAAYFAk7QhKAACgkQN9GcIYhpnLA1cACgnMxAEMRODMCKT+1P9tGOJusd VYoAoJ3gFE3D6Q69bfeHzmhljmqVpsT4 =Xz4s -----END PGP SIGNATURE----- -- 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="msg05280.html">Previous message</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="c" href="index.html#05281">View by thread</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="i" href="maillist.html#05281">View by date</a></li> <li class="msgButtonItems textalignright"><a class="button buttonright " accesskey="n" href="msg05282.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 tSliceCur"><span class="subject">Re: [sphinx-dev] Re: Some charact...</span> <span class="sender italic">Georg Brandl</span></li> <li class="icons-email"><span class="subject"><a href="msg05282.html">Re: [sphinx-dev] Re: Some charact...</a></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="4ED084A0.1040804@python.org"> <input type="hidden" name="relpath" value="sphinx-dev@googlegroups.com/msg05281.html"> <input type="submit" value=" Georg Brandl "> </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="msg05280.html" title="p">Previous message</a></li> <li class="icons-next"><a href="msg05282.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">4ED084A0.1040804@python.org</li> </ul> </div> </body> </html>