Re: Entering Greek, cyrillic, or other 'weird' text

2007-10-25 Thread Kenneth Gonsalves
On 26-Oct-07, at 10:49 AM, Robert Bunting wrote: >> so is this a legacy database - meaning a database which had data >> before you upgraded to unicode django? In that case, we have seen in >> postgres that the old data is b0rked and needs to be reentered, >> otherwise it wont work. You need to e

Re: Entering Greek, cyrillic, or other 'weird' text

2007-10-25 Thread Robert Bunting
On Oct 24, 10:27 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > so is this a legacy database - meaning a database which had data > before you upgraded to unicode django? In that case, we have seen in > postgres that the old data is b0rked and needs to be reentered, > otherwise it wont work.

Re: Entering Greek, cyrillic, or other 'weird' text

2007-10-24 Thread Kenneth Gonsalves
On 24-Oct-07, at 7:50 PM, bjornkri wrote: > Some data IS entered into the database - when I tried just now with a > 'content' of Greek text, I get the Incorrect string value message, but > when I go back to the admin interface the entry is there but filled > with question marks where the Greek t

Re: Entering Greek, cyrillic, or other 'weird' text

2007-10-24 Thread bjornkri
Got it! It was a core problem, so to speak... I tried dropping the database and create it again, this time with the crucial (apparently) option CHARACTER SET utf8. So, for anyone who has the same problem: CREATE DATABASE CHARACTER SET utf8; It's in the manual and everything :P Did that and tr

Re: Entering Greek, cyrillic, or other 'weird' text

2007-10-24 Thread bjornkri
I did that, but that made no difference. Even if the title field doesn't have any special characters it still crashes. Some data IS entered into the database - when I tried just now with a 'content' of Greek text, I get the Incorrect string value message, but when I go back to the admin interface

Re: Entering Greek, cyrillic, or other 'weird' text

2007-10-24 Thread Kenneth Gonsalves
On 24-Oct-07, at 4:42 PM, bjornkri wrote: > def __unicode__(self): > return self.title def __unicode__(self): return u"%s" % self.title<- try this -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~~

Re: Entering Greek, cyrillic, or other 'weird' text

2007-10-24 Thread tomris
http://www.cnd-industry.com/ --~--~-~--~~~---~--~~ 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 [EM

Re: Entering Greek, cyrillic, or other 'weird' text

2007-10-24 Thread bjornkri
Yeah, here's the model: class Page(models.Model): language = models.CharField(maxlength=2, choices=LANGUAGE_CHOICES) title = models.CharField(maxlength=60) path = models.SlugField(prepopulate_from=('language','title',)) content = models.TextField(blank=True) class Admin():

Re: Entering Greek, cyrillic, or other 'weird' text

2007-10-24 Thread Kenneth Gonsalves
On 24-Oct-07, at 3:37 PM, bjornkri wrote: > 0.97-pre-SVN-6603 (just updated, had the same on -6596) are you using the __unicode__(self): return u"string to return" syntax? -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~

Re: Entering Greek, cyrillic, or other 'weird' text

2007-10-24 Thread bjornkri
0.97-pre-SVN-6603 (just updated, had the same on -6596) On Oct 24, 11:44 am, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On 24-Oct-07, at 1:28 PM, bjornkri wrote: > > > I was sure this must be a common problem, as I've tried two different > > installations with completely different setups, and

Re: Entering Greek, cyrillic, or other 'weird' text

2007-10-24 Thread Kenneth Gonsalves
On 24-Oct-07, at 1:28 PM, bjornkri wrote: > I was sure this must be a common problem, as I've tried two different > installations with completely different setups, and the same results > in both cases. But looking up the error message, "Incorrect string > value", didn't give me anything what ve