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. |
From: Benoit G. <be...@co...> - 2012-03-21 03:39:12
|
On March 21, 2012 12:52:03 AM Matěj Cepl wrote: > 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? Nothing is wrong with your OFX document. There were problems with OFX 2.0 support in libofx which were discovered and fixed in git a only a few weeks ago (OFX 2.0 is still aparently pretty rare in the wild). The fixes will be in the upcoming 0.9.6 (and I checked that your file works fine). For now you'd need to compile directly from git: git clone git://libofx.git.sourceforge.net/gitroot/libofx/libofx cd libofx ./autogen.sh make sudo make install Or run a git snapshot. For ubuntu that would be found at: https://launchpad.net/~benoitg/+archive/libofx-daily, and can be added with sudo apt-add-repository ppa:benoitg/libofx-daily sudo apt-get update sudo apt-get install ofx -- Benoit Grégoire, ing., PMP, PSM |
From: Matěj C. <mc...@re...> - 2012-05-14 14:01:13
Attachments:
_build-0.9.6-0.0.git5f7d38c.1.fc18.log.gz
|
On 21.3.2012 04:39, Benoit Grégoire wrote: > git clone git://libofx.git.sourceforge.net/gitroot/libofx/libofx > > cd libofx > > ./autogen.sh > > make Trying to build commit 5f7d38c on what's essentially Fedora 17 and I am getting make[2]: Entering directory `/home/matej/build/Extras/libofx/libofx/ofxdump' make[2]: *** No rule to make target `cmdline.c', needed by `cmdline.o'. Stop. make[2]: Leaving directory `/home/matej/build/Extras/libofx/libofx/ofxdump' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/matej/build/Extras/libofx/libofx' make: *** [all] Error 2 chyba: Špatný návratový kód z /var/tmp/rpm-tmp.l87fwz (%build) (complete build log is attached). Any ideas what to do? 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 - Do you think of yourself as a Christian artist? - I'm an artist who is a Christian. I'm not a Christian artist. -- Johny Cash in his last interview |
From: Matěj C. <mc...@re...> - 2012-05-14 13:59:40
Attachments:
_build-0.9.6-0.0.git5f7d38c.1.fc18.log
|
On 21.3.2012 04:39, Benoit Grégoire wrote: > git clone git://libofx.git.sourceforge.net/gitroot/libofx/libofx > > cd libofx > > ./autogen.sh > > make Trying to build commit 5f7d38c on what's essentially Fedora 17 and I am getting make[2]: Entering directory `/home/matej/build/Extras/libofx/libofx/ofxdump' make[2]: *** No rule to make target `cmdline.c', needed by `cmdline.o'. Stop. make[2]: Leaving directory `/home/matej/build/Extras/libofx/libofx/ofxdump' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/matej/build/Extras/libofx/libofx' make: *** [all] Error 2 chyba: Špatný návratový kód z /var/tmp/rpm-tmp.l87fwz (%build) (complete build log is attached). Any ideas what to do? 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 - Do you think of yourself as a Christian artist? - I'm an artist who is a Christian. I'm not a Christian artist. -- Johny Cash in his last interview |