Cannot handle OFX file with UTF-8 encoding

Bug #276379 reported by Toshi Fukui on 2008-09-30
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
GnuCash
New
Undecided
Unassigned
LibOFX
New
Undecided
Unassigned
libofx (Ubuntu)
Undecided
Unassigned
Nominated for Lucid by Yasuaki Taniguchi
Nominated for Maverick by Yasuaki Taniguchi

Bug Description

I found Gnucash (2.2.4.-1ubuntu1) cannot import OFX files with UTF-8 wide characters, properly.
I checked the source code and found the cause was in libofx package (1:0.9.0-2ubuntu1).

Please find the attachment, my patch.

Wide characters will be imported properly, after this patch.

This fix works, but it's not perfect, yet.

I haven't eliminated OpenSP parser's error messages, yet.

LibOFX ERROR: OpenSP parser: otherError (misc parse error):
/tmp/libofxtmpdlZGN5:44:25:E: non SGML character number 239

Toshi Fukui (mtlion) wrote :
henjo (henjo2006) wrote :

Hi,

The patch works for me. The problem seems to be that a newline is added to s_buffer.

Here is another patch where a newline is not added at all.

/Henrik

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments