You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
UnicodeEncodeError: 'ascii' codec can't encode character u'\xbb' in position 20: ordinal not in range(128) #18
I get this error:
python boilerpipeTrial.py
Traceback (most recent call last):
File "boilerpipeTrial.py", line 9, in
print extracted_text
UnicodeEncodeError: 'ascii' codec can't encode character u'\xbb' in position 20: ordinal not in range(128)
where line 9 is: print extracted_text
Would please give me some hints on how to solve it?
Activity
marcoippolito commentedon Feb 4, 2014
I solved this issue by adding:
extracted_text_u = extracted_text.encode('utf-8','replace')
print extracted_text_u
Any contraindications with this adding?