From cae16c01c47c412edafd19ca9b47483cb5c104ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9lande=20Adrien?= Date: Fri, 5 Apr 2019 15:16:33 +0200 Subject: [PATCH] [boursorama/transfer] handle \ufffd character --- modules/boursorama/module.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/boursorama/module.py b/modules/boursorama/module.py index 014704d1ae..1c43fd1c83 100644 --- a/modules/boursorama/module.py +++ b/modules/boursorama/module.py @@ -103,6 +103,9 @@ def transfer_check_label(self, old, new): # Else: inside '<>' chars are deleted old = re.sub(r'<[^>]*>', '', old).strip() old = old.split('<')[0] + + # replace � by ?, like the bank does + old = old.replace('\ufffd', '?') return super(BoursoramaModule, self).transfer_check_label(old, new) def iter_currencies(self): -- GitLab