UnicodeError when importing statment with accents
When importing an aeb43 statement file with accent I get the following traceback:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd3 in position 1486: ordinal not in range(128)
File "trytond/protocols/dispatcher.py", line 176, in _dispatch
result = rpc.result(meth(*c_args, **c_kwargs))
File "trytond/wizard/wizard.py", line 287, in execute
return wizard._execute(state_name)
File "trytond/wizard/wizard.py", line 313, in _execute
do_result = do(action)
File "trytond/modules/account_statement/statement.py", line 1052, in do_import_
statements = list(getattr(self, 'parse_%s' % self.start.file_format)())
File "trytond/modules/account_statement_aeb43/statement.py", line 37, in parse_aeb43
file_ = file_.decode(encoding)
That's because the file is using the iso-8859-1 format.