python-scraping icon indicating copy to clipboard operation
python-scraping copied to clipboard

UnicodeEncodeError: 'ascii' codec can't encode character '\u2019' in position 83: ordinal not in range(128)

Open maokitty opened this issue 8 years ago • 0 comments

I try to run code 'chapter6/6-readDocx.py' , error is blow: UnicodeEncodeError: 'ascii' codec can't encode character '\u2019' in position 83: ordinal not in range(128)

it look like the error line is 'xml_content.decode('utf-8')'

how can i fix it?help me please

maokitty avatar Feb 08 '17 07:02 maokitty