[Biopython] Printing non-ASCII characters
Melissa Curran
melissacurran530 at gmail.com
Sat Dec 8 20:39:57 UTC 2012
Hello,
I'm trying to print out the titles of articles, but often get an error
about it encountering non-ASCII characters. What do I need to do in order
to be able to print the article titles? Below is a snippet of code from my
program, which is where I'm getting the error.
handle = Entrez.efetch(db="pubmed", id=record, retmode="xml")
articles = Entrez.parse(handle)
for article in articles:
print article['MedlineCitation']['Article']['ArticleTitle']
Thanks much,
Melissa
More information about the Biopython
mailing list