Commit 11a0b615 authored by Vincent A's avatar Vincent A

weboob.applications.boobank: declare utf-8 in OFX formatter

USASCII was plain wrong since we used Unicode codepoints without
restricting them to ASCII set.

UTF-8 might not be always right, because at this stage we're
manipulating strings, not bytes, and we don't really know what low-level
encoding is set for (for example) stdout.

UTF-8 is the most likely encoding though, and can't be worse than
USASCII.

Closes: #294
parent d6894a19
......@@ -90,8 +90,8 @@ class OfxFormatter(IFormatter):
self.output(u'DATA:OFXSGML')
self.output(u'VERSION:102')
self.output(u'SECURITY:NONE')
self.output(u'ENCODING:USASCII')
self.output(u'CHARSET:1252')
self.output(u'ENCODING:UTF-8')
self.output(u'CHARSET:UTF-8')
self.output(u'COMPRESSION:NONE')
self.output(u'OLDFILEUID:NONE')
self.output(u'NEWFILEUID:%s\n' % uuid.uuid1())
......
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