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

Unicode error in __unicode__(self) function

2017-05-08 Thread rmschne
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 : 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not

unicode error but weird as there is no data yet

2013-09-14 Thread MikeKJ
The ordinal error is in GroupRegistration becasue if I rem the group line in Register the admin works BUT there is no data in GroupRegistration so how can I have this error? Caught UnicodeEncodeError while rendering: 'ascii' codec can't encode character u'\xf6' in position 26: ordinal not in

unicode error with no data?

2013-09-14 Thread MikeKJ
The unicode error appears to be GroupRegistration but there is *no data* in that table as yet! I checked that by rem the inlines in admin.py and separately the grup line in Register Caught UnicodeEncodeError while rendering: 'ascii' codec can't encode character u'

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

Unicode Error when Saving Django Model

2010-05-23 Thread vjimw
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 collation (DEFAULT CHARSET=utf8;) The data I am inputting is un

Re: Unable to delete certain admin objects. Get "coercing to unicode" error on some, but not all objects.

2010-01-07 Thread rc
Ahh. There was one foreign key relationship (table not managed under admin) that i missed. It was indeed returning an int. Fixed it by using force_unicode and it's now working. Thanks Karen. On Jan 6, 7:06 pm, Karen Tracey wrote: > On Wed, Jan 6, 2010 at 5:20 PM, rc wrote: > > I get the followi

Re: Unable to delete certain admin objects. Get "coercing to unicode" error on some, but not all objects.

2010-01-06 Thread Karen Tracey
On Wed, Jan 6, 2010 at 5:20 PM, rc wrote: > I get the following error when I try and delete a "testcase": > > Request Method: GET > Request URL: http://hades/admin/bisite/testcase/20/delete/ > Django Version: 1.0.2 final > Python Version: 2.5.2 > Installed Applications: > [snip] > 679. ge

Unable to delete certain admin objects. Get "coercing to unicode" error on some, but not all objects.

2010-01-06 Thread rc
I get the following error when I try and delete a "testcase": Request Method: GET Request URL: http://hades/admin/bisite/testcase/20/delete/ Django Version: 1.0.2 final Python Version: 2.5.2 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions',

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

unicode error when adding a related object in admin inline

2009-09-07 Thread Miklos
n't decode byte 0xc3 in position 1: ordinal not in range(128) Unicode error hint The string that could not be encoded/decoded was: t��mak� --- The error seems to originate in: --- django/contrib/admin/options.py in construct_change_message change_message.append(_(&#x

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

Unicode error

2009-01-26 Thread Oleg Oltar
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): title = models.CharField(max_length=60) body = tinymce_mode

Re: django unicode error

2008-11-17 Thread jamesM
Karen, thank You su much for the help! after executing "show create table' i realised there was a problem in my character_set+collation, changed it from latin1_swedish_ci (can't remember which charset it was)to utf8+utf8_general_ci, and now everything works like a charm. Thanks once again! all

Re: django unicode error

2008-11-16 Thread Karen Tracey
On Sun, Nov 16, 2008 at 10:18 AM, jamesM <[EMAIL PROTECTED]>wrote: > > there is a value 'Qué Onda Guero' in a mysql database. When i SELECT > this row from mysql, it's displayed correctly. When i connect to mysql > DB through python 2.6 shell using mySQLObject and assign the value to > a list, the

django unicode error

2008-11-16 Thread jamesM
there is a value 'Qué Onda Guero' in a mysql database. When i SELECT this row from mysql, it's displayed correctly. When i connect to mysql DB through python 2.6 shell using mySQLObject and assign the value to a list, the >>list_name[0] gives 'Qu\xc3\xa9 Onda Guero', and >>variable =list_name[0]

Re: Damn unicode error

2008-06-25 Thread Alex Slesarev
Difficult to say there is the error exactly, but I can give few hints to avoid this error: 1. Define __unicode__() function for all your models, like this: class BookCategory(models.Model): shortname = models.CharField(max_length = 765, verbose_name = _('short

Re: Damn unicode error

2008-06-24 Thread Alessandro Ronchi
2008/6/24, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > The unicode stuff continues to give me no end of headaches. This > morning I keep getting the error below. As near as I can tell, when I > call AddManipulator it's getting the related fields, and there's a bad > character somewhere in there.

Re: Damn unicode error

2008-06-24 Thread Etienne Robillard
On Tue, 24 Jun 2008 07:33:14 -0700 (PDT) "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > The unicode stuff continues to give me no end of headaches. This > morning I keep getting the error below. As near as I can tell, when I > call AddManipulator it's getting the related fields, and there's

Damn unicode error

2008-06-24 Thread [EMAIL PROTECTED]
The unicode stuff continues to give me no end of headaches. This morning I keep getting the error below. As near as I can tell, when I call AddManipulator it's getting the related fields, and there's a bad character somewhere in there. My question is, how can I find it? "UnicodeEncodeError: 'asci

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

Unicode error

2008-02-05 Thread Kristian Øllegaard
Hi there I just upgraded from version 0.96, where i without any problems were running my project. After upgrading, i get an error whenever i interact with the database (tried to read, add or edit). 'ascii' codec can't encode character u'\xd8' in position 0: ordinal not in range(128) Is there a

Patch for 'mysql_old' users... (unicode error)

2007-09-26 Thread Jens Diemer
with the Traceback. If a Unicode error appears, the values in the traceback seems to be unicode. But this is not true. The data from the database are byte strings. I have made a Patch for the file ./django/db/backends/mysql_old/base.py to fix the unicode problem. You can find the Patch in the

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