Re: Unicode name of field in form

2010-02-10 Thread Thomas Turner
In django you would do from django.utils.safestring import mark_safe forms.CharField(label = mark_safe('Ø')) On Dec 24 2009, 9:17 am, Andrij Skalyuk wrote: > Thanks for reply. > > I see, that in this case, i will use replacement system of Unicode > characters to ASCII. > > On Dec 23, 6:09 pm,

Re: Unicode name of field in form

2009-12-24 Thread Andrij Skalyuk
Thanks for reply. I see, that in this case, i will use replacement system of Unicode characters to ASCII. On Dec 23, 6:09 pm, Bill Freeman wrote: > I haven't done any python programing with variable, function, class, > and attribute names -- You received this message because you are subscribed

Re: Unicode name of field in form

2009-12-23 Thread Bill Freeman
I haven't done any python programing with variable, function, class, and attribute names containing non-ASCII characters, so I don't know whether there is support for them, or how good it is. If you can't say: Ø = forms.CharField() Then I think it's going to be down hill from there. Templat

Re: Unicode name of field in form

2009-12-23 Thread Andrij Skalyuk
Thanks for reply. But what should i do with names of fields ? Replace unicode characters with some English ? I really want to keep unicode characters for names of fields, because it is easy to manage without any replacement. On Dec 23, 5:51 pm, Bill Freeman wrote: > I think that you need to pass

Re: Unicode name of field in form

2009-12-23 Thread Bill Freeman
I think that you need to pass the label as the "label" argument to forms.CharField: field = forms.CharField(label="Ø") or: field = forms.CharField(label=smart_unicode("Ø")) On Wed, Dec 23, 2009 at 9:54 AM, Andrij Skalyuk wrote: > I am trying to create field in form with name "Ø" (specia