OFX Importable number of characters for NAME is too short
OFX Importable number of characters for NAME is 32.
But it is 10 at multibyte language.(1 character == 3 bytes at multibyte characters on UTF8)
Isn't it extended?
example patch for libofx
--- inc/libofx.h.in~ 2011-04-17 02:10:20 +0900
+++ inc/libofx.h.in 2013-03-25 18:50:29 +0900
@@ -70,7 +70,7 @@
#define OFXACCOUNTIDLENGTH (OFXBANKIDLENGTH + OFXBRANCHIDLENGTH + OFXACCTIDLENGTH + 1)
#define OFXACCOUNTNAMELENGTH 255
#define OFXMARKETINGINFOLENGTH (360 + 1)
-#define OFXTRANSACTIONNAMELENGTH (32 + 1)
+#define OFXTRANSACTIONNAMELENGTH (96 + 1)
#define OFXUNIQUEIDLENGTH (32 + 1)
#define OFXUNIQUEIDTYPELENGTH (10 + 1)
#define OFXSECNAMELENGTH (32 + 1)
Thanks for the patch. Indeed, the libofx library should allow larger field lengths. In fact, the source code of libofx shouldn’t rely on fixed maximum field sizes anyway, but currently the source code still does it. Sorry for that.
Your patch is now in the libofx git repository so that it will be in the next release, libofx-0.9.6. Unfortunately, I’m not its maintainer (but Benoit is), so I can’t tell when there will be a release.
-
O commented
Thank you!