Scraping-Scripts icon indicating copy to clipboard operation
Scraping-Scripts copied to clipboard

thechive.com.py UnicodeEncodeError

Open jhavens12 opened this issue 8 years ago • 1 comments

I tried using this on a different system and I get an error as follows:

Invoking findLastPage()
Last page is 1000
Page 0 of 1000
Traceback (most recent call last):
  File "thechive.com.py", line 47, in <module>
    print("\tName: " + name + "\n\t\tDate: " + date)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 31: ordinal not in range(128)

The only difference is that it works on Ubuntu 16.06 but gives me this error on 14.04. I can't seem to figure out why as the scripts are identical. Any help would be appreciated

jhavens12 avatar Feb 02 '17 20:02 jhavens12

I fixed this buy running

sudo apt-get install language-pack-en

jhavens12 avatar Feb 03 '17 16:02 jhavens12