]> git.ipfire.org Git - thirdparty/python-fints.git/commitdiff
Fix a FIXME (by turning it into a note)
authorHenryk Plötz <henryk@ploetzli.ch>
Sat, 1 Dec 2018 23:04:29 +0000 (00:04 +0100)
committerRaphael Michel <mail@raphaelmichel.de>
Mon, 3 Dec 2018 18:35:36 +0000 (19:35 +0100)
fints/client.py

index 0e0ebc42b18625c323c8c30b241e5983a2737dab..a1944898dd94972b53389161fada638b2edaa650 100644 (file)
@@ -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))