Commit c75cf23f authored by Sylvie Ye's avatar Sylvie Ye Committed by Romain Bignon

[fortuneo] submit transfer label if characters can be encoded by page encoding codec

else, use errors='xmlcharrefreplace' parameter
parent 3bd9b818
......@@ -183,7 +183,7 @@ class RegisterTransferPage(LoggedPage, HTMLPage):
form['typeDeVirement'] = 'VI'
form['dateDeVirement'] = exec_date.strftime('%d/%m/%Y')
form['montantVirement'] = amount
form['libelleVirementSaisie'] = label
form['libelleVirementSaisie'] = label.encode(self.encoding, errors='xmlcharrefreplace').decode(self.encoding)
form.submit()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment