On Thu, Jan 9, 2014 at 8:16 AM, Ben Finney <ben+python at benfinney.id.au> wrote: > Nick Coghlan <ncoghlan at gmail.com> writes: >> Set the mode to "rb", process it as binary. Done. > > Which entails abandoning the stated goal of “just want to parse text > files” :-) Only if your definition of "text files" means it's unicode.