On the following problem, it turned out that this is only possible on the latest versions of Chrome and Fox browsers. In IE, strangely enough, everything is displayed correctly (which is the most annoying - I closed the site from IE altogether :)) Help to bring the same style / look so that it displays correctly everywhere.

According to the standard Django manual, with a bit of bewilderment, I set up RSS for myself on the resource, but after some time, instead of an RSS feed, I just started issuing XML that generated the engine, while the encoding was win-1251, although the tape itself clearly states:

<?xml version="1.0" encoding="utf-8"?> 

Here is a screen of a piece of output XML instead of RSS, which I'm waiting for.

alt text

Django1.3 project, python2.6

  • And in the database the correct encoding? You can even look at the settings of the web server. - l0ki
  • In the database, everything is OK, and the settings are OK, all the pages of the norms give, and the RCC used to work, although as I wrote it, it is possible that the norms work in earlier versions of browsers. In IE, the rules still work, apparently the problem is on the client side, but how to unify HZ for all browsers. - trec

1 answer 1

In general, the encoding is actually utf-8, but for some reason, browsers automatically incorrectly determine the encoding? Perhaps some browsers look at the encoding in the document in the first place, while others look at the encoding of the HTTP headers and perhaps the necessary header is not given and should be sent explicitly, it seems there should be "Accept-Charset: utf-8". But these are only assumptions; look in the http browser for response headers that are sent when a feed is requested.