From a3261acc8232e9d1a7e514898f7cd0f6963abff5 Mon Sep 17 00:00:00 2001 From: lucdsouza Date: Fri, 16 Jan 2026 22:14:16 -0300 Subject: [PATCH] Fix: missing hyphen in 'utf-8' encoding. Error when importing OFX files due to unknown encoding. Fixes issue #48. --- pkg/converters/ofx/ofx_data_reader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/converters/ofx/ofx_data_reader.go b/pkg/converters/ofx/ofx_data_reader.go index 78cc21ae..0e7336cc 100644 --- a/pkg/converters/ofx/ofx_data_reader.go +++ b/pkg/converters/ofx/ofx_data_reader.go @@ -23,7 +23,7 @@ import ( const ofx1USAsciiEncoding = "usascii" const ofx1UnicodeEncoding = "unicode" -const ofx1UTF8Encoding = "utf8" // non-standard ofx 1.x encoding, used by some banks (https://github.com/mayswind/ezbookkeeping/issues/48) +const ofx1UTF8Encoding = "utf-8" // non-standard ofx 1.x encoding, used by some banks (https://github.com/mayswind/ezbookkeeping/issues/48) const ofx1SGMLDataFormat = "OFXSGML" var ofx2HeaderPattern = regexp.MustCompile("<\\?OFX( +[A-Z]+=\"[^=]*\")* *\\?>")