Now if only I knew what could be causing an encoding issue when the command is issued by Atom, but not when it’s issued by you on the command line.
One thing to check is what exactly we mean by
python . For example it’s easy to have both python 2 and 3 installed in parallel. Also possible is a distribution like anaconda in parallel with official one and sandboxed with regard to add-on.
Also the thing that fail is inside the data extracting library
beatiful soup . So the encoding problem could very well be encoding of the content at said url, instead of encoding of file.
Error is in
cp1252.py, so Windows-1252 ou CP1252 that’s a window encoding. Bad character is
It’s possible either
bs4 try to infer the codec of the content at
pythonprograming.net from local environment. And that local environment change when launching inside atom.
In that situation I’d try to see if it’s possible to force
utf-8 either on
read()or on the