Re: Unicode error in __unicode__(self) function

2017-05-10 Thread Melvyn Sopacua
On Tuesday 09 May 2017 06:00:31 rmschne wrote: > > I'm sorry - but this isn't your real error. > > > > You will see it in your WSGI daemon logs once you set DEBUG to > > false. > > > > > > > > This error is caused by Django trying to print the error using ascii > > codec for the debug output (I

Re: Unicode error in __unicode__(self) function

2017-05-09 Thread m712 - Developer
On May 9, 2017 11:42 AM, Melvyn Sopacua wrote: > I'm sorry - but this isn't your real error. Your error is in another castle? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, se

Re: Unicode error in __unicode__(self) function

2017-05-09 Thread Vijay Khemlani
Paste the whole stack traceof the error On 5/9/17, rmschne wrote: > > >> I'm sorry - but this isn't your real error. >> >> You will see it in your WSGI daemon logs once you set DEBUG to false. >> >> >> >> This error is caused by Django trying to print the error using ascii codec >> >> for the deb

Re: Unicode error in __unicode__(self) function

2017-05-09 Thread rmschne
> I'm sorry - but this isn't your real error. > > You will see it in your WSGI daemon logs once you set DEBUG to false. > > > > This error is caused by Django trying to print the error using ascii codec > for the debug output (I haven't chased it down any further and I should > really repor

Re: Unicode error in __unicode__(self) function

2017-05-09 Thread Melvyn Sopacua
On Monday 08 May 2017 09:10:15 rmschne wrote: > I have a Django setup that has worked for a very long time. Yesterday > I upgraded from Django 1.10 to 1.11.1 and am getting the error: > > raise DjangoUnicodeDecodeError(s, *e.args) > django.utils.encoding.DjangoUnicodeDecodeErrorJón > > : 'asc

Re: Unicode error in __unicode__(self) function

2017-05-08 Thread rmschne
Yes, it is the first name of a person with a European name, who it's got that "ó" character. My understanding that it is Unicode. The variable prints ok in the rest of the code to the screen and in Django templates, but this __unicode_(self) method fails. On Monday, 8 May 2017 17:22:42 UTC+1,

Re: Unicode error in __unicode__(self) function

2017-05-08 Thread 'Tom Evans' via Django users
What data is "Jón"? Is it u'J\xf3n' or something else? (print repr(self.fname)) Cheers Tom On Mon, May 8, 2017 at 5:10 PM, rmschne wrote: > I have a Django setup that has worked for a very long time. Yesterday I > upgraded from Django 1.10 to 1.11.1 and am getting the error: > > raise Djan

Re: Unicode Error when Saving Django Model

2010-05-25 Thread vjimw
Thanks. It was actually a combination of issues. The database was UTF8, I should have added to my original post that I could manually insert and retrieve UTF8 data. The data we are pulling (migrating one system to a new one, built on django) is a bit of a nest of encoding issues. So things that ma

Re: Unicode Error when Saving Django Model

2010-05-24 Thread Scott Gould
Point taken, three times. On May 24, 9:40 am, Karen Tracey wrote: > On Mon, May 24, 2010 at 8:27 AM, Scott Gould wrote: > > > 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 y

Re: Unicode Error when Saving Django Model

2010-05-24 Thread Karen Tracey
On Mon, May 24, 2010 at 8:27 AM, Scott Gould wrote: > > 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') > > > > > > But when I try to

Re: Unicode Error when Saving Django Model

2010-05-24 Thread Karen Tracey
On Sun, May 23, 2010 at 10:10 PM, vjimw wrote: > I have been reading up on Unicode with Python and Django and I think I > have my code set to use UTF8 data when saving or updating an object > but I get an error on model.save() > > My database and all of its tables are UTF8 encoded with UTF8 colla

Re: Unicode Error when Saving Django Model

2010-05-24 Thread Scott Gould
> 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') > > > But when I try to save this data I get an error > Incorrect string value: '\\xC2\\x92s

Re: unicode error when adding a related object in admin inline

2009-09-09 Thread Miklós
Thanks, Karen. I was using gettext, and replacing it to ugettext indeed fixed the problem. On Sep 7, 7:06 pm, Karen Tracey wrote: > On Mon, Sep 7, 2009 at 12:53 PM, Miklos wrote: > > > Hi, > > > I have models with verbose names translated into Hungarian. The > > verbose names contain non-ascii

Re: unicode error when adding a related object in admin inline

2009-09-07 Thread Karen Tracey
On Mon, Sep 7, 2009 at 12:53 PM, Miklos wrote: > > Hi, > > I have models with verbose names translated into Hungarian. The > verbose names contain non-ascii characters. I have trouble adding, > editing, or deleting related objects through an admin inline. The > error I get is below. I can add, ed

Re: Unicode error

2009-01-26 Thread Oleg Oltar
THANKS On Mon, Jan 26, 2009 at 10:21 PM, Daniel Roseman < roseman.dan...@googlemail.com> wrote: > > On Jan 26, 8:08 pm, Oleg Oltar wrote: > > Hi. > > I want to use django admin, for adding articles into my db. My language > is > > Russian. > > > > I defined model in the following

Re: Unicode error

2009-01-26 Thread Daniel Roseman
On Jan 26, 8:08 pm, Oleg Oltar wrote: > Hi. > I want to use django admin, for adding articles into my db. My language is > Russian. > > I defined model in the following way: > > from django.db import models > from tinymce import models as tinymce_models > > class Article(models.Model): >     titl

Re: Unicode error

2008-02-06 Thread Corey Oordt
Kristian, I had a similar problem when I needed to send some ASCII emails. I have a snippet at does a translation of unicode characters to close ASCII approximations if it is helpful: http://www.djangosnippets.org/snippets/588/ Corey On Feb 5, 2008, at 3:48 PM, Kristian Øllegaard wrote:

Re: Unicode error

2008-02-05 Thread Kristian Øllegaard
Hi again Ok - my bad. Thanks a lot Regards Kristian On Feb 5, 2008 9:29 PM, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > On 2/5/08, Kristian Øllegaard <[EMAIL PROTECTED]> wrote: > > Is there an obvious thing i did wrong? Have you heard about this error > > before? > > This is because of th

Re: Unicode error

2008-02-05 Thread Jacob Kaplan-Moss
On 2/5/08, Kristian Øllegaard <[EMAIL PROTECTED]> wrote: > Is there an obvious thing i did wrong? Have you heard about this error > before? This is because of the changes in Unicode handling after 0.96; read more here: http://code.djangoproject.com/wiki/UnicodeBranch#PortingApplicationsTheQuickC

Re: Unicode error

2007-08-24 Thread sandro.fernandes
Changed mysql db Collation to utf8_unicode_ci and the error was gone ! thanks yours, Sandro Thomas Guettler wrote: > Am Mittwoch, 22. August 2007 19:25 schrieb Sandro Fernandes: > >> Hi all , >> >> I runing Django from the trunk and getting the error bellow , this >> happens when a da

Re: Unicode error

2007-08-23 Thread Thomas Guettler
Am Mittwoch, 22. August 2007 19:25 schrieb Sandro Fernandes: > Hi all , > > I runing Django from the trunk and getting the error bellow , this > happens when a data has accents like á é or ã > > > UnicodeDecodeError at /admin/frete/frete/ > If you use the current SVN version with includes this