Re: UnicodeDecodeError and mysql SOLVED!

2008-08-21 Thread anonymous
On Aug 20, 4:05 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > Also most of these settings in DATABASE_OPTIONS are unnecessary. The only > one that you really need if it is not your database default storage engine > is "SET storage_engine=InnoDB". I've eliminate DATABASE_OPTIONS and this solve

Re: UnicodeDecodeError and mysql

2008-08-21 Thread anonymous
I've tested the application with sqlite instead of mysql and I've no problems. The mysql table that syncdb generate is (the mysql dump): DROP TABLE IF EXISTS `demo_mymodel`; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; CREATE TABLE `demo_mymodel` ( `id` i

Re: UnicodeDecodeError and mysql

2008-08-21 Thread anonymous
On Aug 20, 4:05 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > > Have you defined a __unicode__ method for your model?  If yes, what does it > look like?  Also are you using a binary collation? > Yes, the code: class Mymodel(models.Model): name = models.CharField(_('name'), max_length=50

Re: UnicodeDecodeError and mysql

2008-08-20 Thread Karen Tracey
On Wed, Aug 20, 2008 at 3:31 AM, anonymous <[EMAIL PROTECTED]> wrote: > > Hello all, > > I get the following error: > > In [2]: from myapp.models import * > > In [3]: Mymodel.objects.all() > Out[3]: > --- > UnicodeDecodeE

UnicodeDecodeError and mysql

2008-08-20 Thread anonymous
Hello all, I get the following error: In [2]: from myapp.models import * In [3]: Mymodel.objects.all() Out[3]: --- UnicodeDecodeErrorTraceback (most recent call last) /home/user/myproject/ in ()