Fixed UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 20: ordinal not in range(128) #dev #it #asnwer
Fixed UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 20: ordinal not in range(128) #dev #it #asnwer
UnicodeEncodeError: ‘ascii’ codec can’t encode character u’\xa0′ in position 20: ordinal not in range(128)
I’m having problems dealing with unicode characters from text fetched from different web page (on different sites). I am using BeautifulSoup.
The problem is that the error is not always reproducable – in that it sometimes works with some pages, and sometimes, it barfs by throwing a…
View On WordPress














