> My database and all of its tables are UTF8 encoded with UTF8 collation > (DEFAULT CHARSET=utf8;) > The data I am inputting is unicode > (u'Save up to 25% on your online order of select HP LaserJet\x92s') > <type 'unicode'> > > But when I try to save this data I get an error > Incorrect string value: '\\xC2\\x92s' for column 'title' at row 1 > > I assume I am missing something, but not sure what I am missing.
Your string is a unicode string (u'...') but you have UTF-8 encoded text inside it. Unicode is not UTF-8; UTF-8 is a way to represent unicode in ASCII. You should be able to fix it by either casting that string to str(), or by having "real" unicode inside it (difficult to say which is better without knowing how you're obtaining that string to begin with). Regards Scott -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. 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.

