Imamachi-n / BioRxivCurator

Batch scripts curating BioRxiv and PubMed articles by using Altmetric score.
MIT License
11 stars 3 forks source link

[Error] UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 51: ordinal not in range(128) #2

Open Imamachi-n opened 6 years ago

Imamachi-n commented 6 years ago

UnicodeEncodeError happened when sending a message to SNS.

Traceback (most recent call last):
  File "./main4Pubmed.py", line 70, in <module>
    main()
  File "./main4Pubmed.py", line 52, in main
    message = """{0}\n{1}\n""".format(doi_info.title, doi_info.url)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 51: ordinal not in range(128)