On 15/05/07, Martin Tomov <[EMAIL PROTECTED]> wrote: > > http://code.djangoproject.com/ticket/72 > > About this tichet. The last question is mine. > > How to change the encoding, sent by the HTTP headers to something > else, but UTF-8 ? The meta thing in the html is useless. > > Thanks
This ticket is 2 years old and was marked as fixed. What version are you using and have you set the encoding variable in your settings file correctly ? The HTTP headers that are sent in my applications are correct and do include the correct encoding in the Content-Type header. I am running with code checked out from SVN around a month ago. The meta tag in the actual HTML is not useless, but it's interpretation is dependant on the browser. Generally, when no encoding information is specified for the document the browser will either "guess" it (IE) or assume a default value. If it encounters the correct meta tag, it will re-parse the document using the encoding specified in there. This is the behavior for every reasonable browser, but the "correct" thing to do is to always have a proper HTTP header, specifying the encoding. Also - what is wrong with UTF-8 and why do you want to change it ? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---