GNOME Bugzilla – Bug 505386
Gnucash looses transactions if the file contains special characters
Last modified: 2018-06-29 21:57:18 UTC
Please describe the problem: See http://lists.gnucash.org/pipermail/gnucash-user/2007-December/022903.html After importing an OFX file that contains some special characters (Latin 1), the transactions are read correctly but when you save and then reload the gnucash file, many transactions are lost. This is due to a special character in the gnucash XML file. The character is not escaped and the XMl reader fails. This bug may be related to the OFX import or the XML writer. Steps to reproduce: 1. Import the OFX file attached to this bug (euro) 2. After import, you'll see 5 transactions (final balance -1800 euro) 3. Save the gnucash file 4. Exit and restart gnucash 5. Open the saved gnucash file. There is no transactions. Actual results: All 5 transactions are lost. Expected results: We do not loose any transaction. Does this happen every time? yes Other information:
Created attachment 101536 [details] OFX file to import that shows the issue
Thanks a lot for the report! r16755 should fix this by stripping off non-utf8 characters from ofx check and reference number strings. Awaiting backport to branches/2.2.
branches/2.2 @ r16794 for GnuCash 2.2.3.
*** Bug 516898 has been marked as a duplicate of this bug. ***
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=505386. Please update any external references or bookmarks.