From 29d527b9284c84c672ee5e5abc04cb3940307f63 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Wed, 26 Feb 2020 20:07:33 +0100 Subject: [PATCH] Fix revolut file encoding on windows --- ofx_processor/processors/revolut.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ofx_processor/processors/revolut.py b/ofx_processor/processors/revolut.py index 505d3f4..d0aa187 100644 --- a/ofx_processor/processors/revolut.py +++ b/ofx_processor/processors/revolut.py @@ -54,7 +54,7 @@ class RevolutProcessor(Processor): def parse_file(self): try: - with open(self.filename) as f: + with open(self.filename, encoding="utf-8") as f: reader = csv.DictReader(f, delimiter=";") return [line for line in reader] except FileNotFoundError: