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 django-celery task to retr

Re: Invalid control character char 30262

2013-11-11 Thread m1chael
I use ignore in unicode(...) to solve annoying things like this On Nov 11, 2013 10:48 AM, "Timothy W. Cook" wrote: > The replace was my thought as well. I would just replace it with an > empty string. Especially since it is a control character and apprently > doesn't carry human readable informa

Re: Invalid control character char 30262

2013-11-11 Thread Timothy W. Cook
The replace was my thought as well. I would just replace it with an empty string. Especially since it is a control character and apprently doesn't carry human readable information. ? On Mon, Nov 11, 2013 at 11:38 AM, Chi Tak Lam wrote: > Is there anyone can help? > > I think i should do a

Re: Invalid control character char 30262

2013-11-11 Thread Sandro Dutra
Try to write on top of this file: # -*- coding: utf-8 -*- Maybe help. 2013/11/11 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 3026

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 Tak Lam wrote: > > Hi, > > I have a django-cele

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/