My immediate thought, looking at your error, is that your database is storing 
text data as ASCII rather than a unicode encoding (utf-8 being the most 
common).  Perhaps you should check your database character set.  IIRC, MySQL 
uses an ASCII character set by default, unless you choose otherwise during 
installation.

---Peter Herndon

On Apr 15, 2010, at 11:54 AM, zayatzz wrote:

> Hello
> 
> I recieve this kind of error message when in admin:
> 
> Caught an exception while rendering: ('ascii', 'Madalal temperatuuril k
> \xc3\xbcpsetatud stressivaba sea parim t\xc3\xbckk', 23, 24, 'ordinal
> not in range(128)')
> 
> The text should actually be "Madalal remperatuuril küpsetatud
> stressivaba sea parim tükk".
> 
> The model, that saves this information is:
> class Retsept(models.Model):
>       name = models.CharField(max_length=100, verbose_name=_("Name"),
> blank=False, null=False)
>        and other fields....
> 
> 
> And the form for it is:
> class RetseptForm(ModelForm):
>       about = forms.CharField(widget=TinyMCE(attrs={'style': 'width:370px',
> 'rows': 15, 'theme':"simple"}), label = _("text here"),
> required=False)
>       tags = TagField(label = _("tags"),
> widget=TagAutocomplete(attrs={'class':'required'}))
>       name = forms.CharField(label = _("Name"),
> widget=forms.TextInput(attrs={'class':'required'}))
>       class Meta:
>               model = Retsept
>               fields = ('name', 'about', 'image', 'tags',)
>               widgets = {
>                       'name': TextInput(attrs={'class': 'required' })
>               }
> 
> Can anyone tell me whats wrong with it?
> 
> Alan
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to