[Biopython-dev] Unicode and encoding experts? Schäffer in BLAST XML

Peter Cock p.j.a.cock at googlemail.com
Mon Jun 20 17:22:10 UTC 2016


Hi Shyam,

That's interesting - can you comment on the GitHub issue with more
details about your setup? Perhaps this is a combination of settings...

I agree the fix is probably going to be a simple-looking one line edit
to set a default encoding - the trouble will be working out where ;)

Peter

On Mon, Jun 20, 2016 at 6:17 PM, Shyam Saladi <saladi at caltech.edu> wrote:
> I'm not sure if this is the issue, but could you try specifying the encoding
> directly? LANG=C doesn't do anything on my machine, so I can't reproduce the
> error and test this myself.
>
> LANG=C python3.5 -c "h = open('xml_2218_blastp_002.xml', encoding='utf-8');
> print(h.read(400))"
>
> Thanks,
> Shyam


More information about the Biopython-dev mailing list