I want to parse feeds
feed = feedparser.parse(url)
e = feed.entries[0]
summary=e['summary']
now when i am parsing the summary using BeautifulSoap.
self.summary = BeautifulSoup(summary.encode('utf-8')) #summary
I got errors.
Exception Type: UnicodeEncodeError Exception Value: 'ascii' codec can't encode character u'\xa3' in position 755: ordinal not in range(128)
the problem is with the character £4,000. I tried with :
summary.encode('utf-8','ignore'), summary.encode('ascii','ignore')
I spend lots of time to solve this,but still can't. So i am asking this question here.
If you let me know the encoding which supports most number of characters or any method to skipping that character, it will be very helpful.