Invalid control character char 30262

2013-11-09 Thread Chi Tak Lam
Hi, I have a django-celery task to retrieve data from a third party service and store into my database. But I found an error in my log file, which is None: Invalid control character at: line 1134 column 14 (char 30262) Not sure what is char 30262, maybe this? http://www.fileformat.info/info/

Re: Invalid control character char 30262

2013-11-11 Thread Chi Tak Lam
Is there anyone can help? I think i should do a str.replace(old, new)? but i not sure what i should i set for 'old' and 'new' argument... something like this? "my text".replace(char 30262, '???') On Saturday, November 9, 2013 11:44:53 PM UTC+8, Chi Ta

Re: Invalid control character char 30262

2013-11-20 Thread Chi Tak Lam
I end up fix the problem by just passing strict=false to json.loads()... json.loads(response.read(), strict=False). The error didn't occur anymore, seem like working fine. Thanks On Saturday, November 9, 2013 11:44:53 PM UTC+8, Chi Tak Lam wrote: > > Hi, > > I have a djan

Re: ManyToMany field creation problem

2013-12-06 Thread Chi Tak Lam
I think you should do a python manage.py migrate property after python manage.py schemamigration property --auto? On Friday, December 6, 2013 3:44:27 PM UTC+8, Mrinmoy Das wrote: > > Hi, > > I have these tables > > > on apps/common/models.py > > > class UnitType(models.Model): > title =