On Sun, May 20, 2018 at 04:59:12AM -0700, bellcanada...@gmail.com wrote: > On Saturday, 19 May 2018 19:48:20 UTC-4, Skip Montanaro wrote: > > As Chris indicated, you'll have to figure out the correct encoding. You > > might want to check out the chardet module (available on PyPI, I believe) > > and see if it can come up with a better guess. I imagine there are other > > encoding guessers out there. That's just one I'm familiar with. > > thank you for the reply, but how exactly am i supposed to find oout what is > the correct encodeing??
One CAN NOT. The best you can do is to go ask the canonical source of the file what encoding the file is _supposed_ to be in. Then go from there and allow for errors. Karsten -- -- https://mail.python.org/mailman/listinfo/python-list