ofxparse icon indicating copy to clipboard operation
ofxparse copied to clipboard

Bug with encoding for ETrade

Open emin63 opened this issue 2 years ago • 0 comments

Thanks again for this great software.

ETrade gives me an OFX file which has a line like

ENCODING:USASCII
CHARSET:NONE

which triggers a bug in ofxparse.py at https://github.com/jseutter/ofxparse/blob/master/ofxparse/ofxparse.py#L128.

I suggest adding something like

    elif cp == 'NONE':
        encoding = 'cp1252'

before the else clause in that area.

Let me know if you would prefer I make a pull request for this.

emin63 avatar Feb 26 '23 04:02 emin63