Re: Unicode and encoding experts? Sch äffer in BLAST XML

Peter Cock <[email protected]>
Newsgroups gmane.comp.python.bio.devel
Message-ID <CAKVJ-_6G18zAdZR994LBWctyso3GG1w7mwtPVwareOJQODgi4w@mail.gmail.com>
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 <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.