Make your your database tables are using utf-8. Here is a great post about the topic http://blog.awarelabs.com/2008/django-tips-utf-8-ascii-encoding-errors-urllib2-and-mysql/ Vitaly Babiy
On Thu, Jul 16, 2009 at 1:03 PM, Qixing DU <qixing...@gmail.com> wrote: > > Dear All, > > I need to handle non-latin code. But encountered an error looking > like: > > "Data too long for column 'user_name' at row 1" > > The username is: user_name = u'frank' > > The database is mysql 5.0. I didn't find anything useful via google. > > Is this a known issue in Django? How to fix it? Thank you so much! > > Best Regards, > Frank > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---