On 3/10/06, ak <[EMAIL PROTECTED]> wrote:
>
> Hello All
>
> I found that I can set mime type for generated templates by simply
> writing in my views:
>
> return HttpResponse(t.render(c), mimetype='text/html;
> charset=windows-1251')
>
> This is for example if I want russian-only service without i18n. But I
> can't find a similar option in render_to_response() Is it possible ? Or
> may be there is an option in settings.py where I could set up character
> set for the whole project to anything else except utf-8 ?
>

yeah, you can define a DEFAULT_CHARSET option in settings.py. Which is
defined originally in django/conf/global_settings.py. You can just
defined it in settings.py, and this will overwrite the original one.

Try it.
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to