Please look at the thread below:
http://stackoverflow.com/questions/873419/converting-to-safe-unicode-in-python

And you would want to make sure that database encoding style is already set
to UTF-8 (if applicable).

2011/12/5 Tsung-Hsien <jasoniem9...@gmail.com>

> Hello
>    I get the wrong message when type a string which needed to format
> such as
>
> msgid "An inviatation was sent to %(email)s."
> msgstr "邀請已送到%(email)s"
>
>
> ------------------------------------------------------------------------------------------
> Incorrect string value: '\xE9\x82\x80\xE8\xAB\x8B...' for column
> 'message' at row 1
>
> ------------------------------------------------------------------------------------------
> How to fix it?
> Thanks!!
>
> --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 


Best Regards,

Mimi Tantono <http://www.glomelurus.com>

*It is always hard to do new things, and it should be getting even harder
along the time because then it indicates that we are improving.*

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