From e05a2f2ab8f28a24e767c69afdfb663095a06542 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Henryk=20Pl=C3=B6tz?= Date: Sun, 2 Dec 2018 00:04:29 +0100 Subject: [PATCH] Fix a FIXME (by turning it into a note) --- fints/client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fints/client.py b/fints/client.py index 0e0ebc4..a194489 100644 --- a/fints/client.py +++ b/fints/client.py @@ -492,7 +492,9 @@ class FinTS3Client: statement = [] for seg in responses: - # FIXME What is the encoding of MT940 messages? + # Note: MT940 messages are encoded in the S.W.I.F.T character set, + # which is a subset of ISO 8859. There are no character in it that + # differ between ISO 8859 variants, so we'll arbitrarily chose 8859-1. statement += mt940_to_array(seg.statement_booked.decode('iso-8859-1')) logger.debug('Statement: {}'.format(statement)) -- 2.47.2