[Kmymoney-devel] [kmymoney4] [Bug 353372] New: OFX files are double encoded which messes up the £ sign
barry at barrys-emacs.org
Wed Sep 30 13:58:58 UTC 2015
Bug ID: 353372
Summary: OFX files are double encoded which messes up the £
Assignee: kmymoney-devel at kde.org
Reporter: barry at barrys-emacs.org
OFX import over HTTP/HTTPS downloads data in CP1252 typically.
This is assumed, in error, to be unicode by the OFX import code and saved into
encoded as UTF-8.
The UTF-8 encoded tempfile is passed into libofx to parse.
libofx assumes that the encoding is exactly as describer by the OFX headers.
It then uses iconv to convert from the declated encoding of CP1252 into utf-8
ready to pass to OFX imported code.
You can see this problem with an OFX file that contains a £ sign.
After import it shows as two characters.
The attached patch fixes two places I found that this mistake.
Steps to Reproduce:
1. Import an OFX file encoded in CP1252 that containing:
<NAME>INT EARNED £0.05LESS TAX £0.01IN
2. See that the Ledger entry is: INT EARNED Â£0.05LESS TAX Â£0.01IN
£ is shown as Â£
Show £ as £
You are receiving this mail because:
You are the assignee for the bug.
More information about the KMyMoney-devel