Skip to content

Commit a3261ac

Browse files
lucdsouzamayswind
authored andcommitted
Fix: missing hyphen in 'utf-8' encoding. Error when importing OFX files due to unknown encoding. Fixes issue #48.
1 parent b556efa commit a3261ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/converters/ofx/ofx_data_reader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323

2424
const ofx1USAsciiEncoding = "usascii"
2525
const ofx1UnicodeEncoding = "unicode"
26-
const ofx1UTF8Encoding = "utf8" // non-standard ofx 1.x encoding, used by some banks (https://github.com/mayswind/ezbookkeeping/issues/48)
26+
const ofx1UTF8Encoding = "utf-8" // non-standard ofx 1.x encoding, used by some banks (https://github.com/mayswind/ezbookkeeping/issues/48)
2727
const ofx1SGMLDataFormat = "OFXSGML"
2828

2929
var ofx2HeaderPattern = regexp.MustCompile("<\\?OFX( +[A-Z]+=\"[^=]*\")* *\\?>")

0 commit comments

Comments
 (0)