From: Matěj C. <mc...@re...> - 2012-03-20 23:52:14
|
Hi, I am trying to write a plugin for ofxstatement script to import statements from my bank (Postal Savings Bank in Prague, Czech republic). I have now here slightly modified version of the OFX document http://mcepl.fedorapeople.org/tmp/HIST_211202112_201203181608.ofx. With ofxdump from libofx-0.9.4-3.el6.x86_64 I get plenty of errors on stderr like (Above message occured on Line 48, Column 21) LibOFX ERROR: OpenSP parser: otherError (misc parse error): /tmp/libofxtmpWNlNLz:48:21:E: non SGML character number 173 and ofxdump produces corrupted characters. When importing this file into Gnucash I get corrupted characters as well (see http://mcepl.fedorapeople.org/tmp/gnucash-corrupted-encoding.png for a screenshot). Author of ofxstatement (put to CC of this email) suggested to replace the top of the file with <!-- OFXHEADER:100 DATA:OFXSGML VERSION:102 SECURITY:NONE ENCODING:UNICODE CHARSET:UTF-8 COMPRESSION:NONE OLDFILEUID:NONE NEWFILEUID:NONE --> <OFX> [...] but although ofxdump was then able to read it correctly, gnucash still imports corrupted text in both payee and memo fields. Any ideas, what's wrong with my OFX document? Best, Matěj -- http://www.ceplovi.cz/matej/, Jabber: mcepl<at>ceplovi.cz GPG Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC How many Bavarian Illuminati does it take to screw in a light bulb? Three: one to screw it in, and one to confuse the issue. |