Re: How to save Unicode data to mysql database?

2009-07-16 Thread Vitaly Babiy
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 wrote: > > Dear All, > > I need to handle

How to save Unicode data to mysql database?

2009-07-16 Thread Qixing DU
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