Difference between parsing a text file in r and rb mode
This depends a little bit on what version of Python you’re using. In Python 2, Chris Drappier’s answer applies. In Python 3, its a different (and more consistent) story: in text mode (‘r’), Python will parse the file according to the text encoding you give it (or, if you don’t give one, a platform-dependent default), … Read more