Re: Invalid control character char 30262
I use ignore in unicode(...) to solve annoying things like this
On Nov 11, 2013 10:48 AM, "Timothy W. Cook" <tim@mlhim.org> 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 information.
?????
On Mon, Nov 11, 2013 at 11:38 AM, Chi Tak Lam <ctak225@gmail.com> wrote:
> 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-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/unicode/char/30262/index.htm
>>
>> My question is, how can i solve this problem without skip this records?
>>
>> Thanks.
>
> --
> 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, send an
> email to django-users+unsubscribe@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/cc611f7e-ea7a-4ac6-827e-da1bef990387%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
--
MLHIM VIP Signup: http://goo.gl/22B0U
============================================
Timothy Cook, MSc +55 21 94711995
MLHIM http://www.mlhim.org
Like Us on FB: https://www.facebook.com/mlhim2
Circle us on G+: http://goo.gl/44EV5
Google Scholar: http://goo.gl/MMZ1o
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook
--
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, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2B%3DOU3V%3DKyde8XPLZ0qbThDoc86HQ65Zao2Ad-X4__1Zx5%3DqJQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
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, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAAuoY6PTkzaANMX3ZKztWZDCYei1OneSJW-eQ2NkTWyAFSFE8w%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home