Using djangoforms with unicode strings like that: class Entidade(db.Model): nome=db.StringProperty(multiline=False) tipo=db.StringProperty(multiline=False,choices=set(["Pessoa Física","Pessoa Jurídica"]))
class FormEntidade(djangoforms.ModelForm): class Meta: model=Entidade Gives me an error like that below. Is this a bug or a limitation of Django version in GAE? Thank you. <type 'exceptions.UnicodeDecodeError'> . . . e:\google_appengine\google\appengine\ext\db\djangoforms.py in get_form_field(self=<google.appengine.ext.db.StringProperty object at 0x0176F070>, form_class=<class 'django.newforms.fields.CharField'>, **kwargs={}) 163 choices.append(('', '---------')) 164 for choice in self.choices: 165 choices.append((str(choice), unicode(choice))) 166 defaults['widget'] = forms.Select(choices=choices) 167 if self.default is not None: choices = [('', '---------')], choices.append = <built-in method append of list object at 0x0182D198>, builtin str = <type 'str'>, choice = 'Pessoa F\xc3\xadsica', builtin unicode = <type 'unicode'> <type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xc3 in position 8: ordinal not in range(128) args = ('ascii', 'Pessoa F\xc3\xadsica', 8, 9, 'ordinal not in range(128)') encoding = 'ascii' end = 9 message = '' object = 'Pessoa F\xc3\xadsica' reason = 'ordinal not in range(128)' start = 8 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---