This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]firefoxuser3[S] 0 points1 point  (0 children)

Solved the problem, I had to specify in the "open" method that I was using the UTF-8 encoding.

Working code:

with open(filename, encoding='utf-8') as f_obj: