from here:
http://64.233.169.104/search?q=cache:bswtnEOJ33QJ:douglasjarquin.com/blog/2007/07/13/unicode-django-and-textile/+textile+unicode&hl=en&ct=clnk&cd=3&gl=us&client=firefox-a

try textile.textile(str(self.source))

On Aug 5, 12:34 pm, Martin Gilday <[EMAIL PROTECTED]> wrote:
> I have added textile.py to my project dir and can successfully import
> it in the shell.  I have extended one of my models with a save method
> which copies the content from one field, textiles it, then saves it
> another column.
>
> def save(self):
>     import textile
>     self.body = textile.textile(self.source)
>     super(Post, self).save() #call the "real" save method
>
> When I try and add one of the posts using the admin app I get the
> following error.
>
> Exception Type:  UnicodeDecodeError
> Exception Value: 'ascii' codec can't decode byte 0xb4 in position 0:
> ordinal not in range(128)
>
> I am using the django trunk.  Any ideas what I am doing wrong?
>
> Thanks,
> Martin.


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

Reply via email to