[PR #591] [MERGED] Allow libofx to handle decoding imported files #3194

Closed
opened 2026-02-28 20:37:56 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/591
Author: @j-f1
Created: 1/30/2023
Status: Merged
Merged: 2/3/2023
Merged by: @j-f1

Base: masterHead: libofx-charset


📝 Commits (4)

  • 5dadd6b Allow libofx to handle decoding imported files
  • b84c58a Add releve.qfx as a test file
  • 5478c76 Remove irrelevant redacted transactions from test file
  • e0c23f1 Fix console overload from long console.warn stacks

📊 Changes

5 files changed (+118 additions, -2 deletions)

View changed files

packages/loot-core/src/mocks/files/8859-1.qfx (+63 -0)
📝 packages/loot-core/src/server/accounts/__snapshots__/parse-file.test.js.snap (+29 -0)
📝 packages/loot-core/src/server/accounts/parse-file.js (+1 -1)
📝 packages/loot-core/src/server/accounts/parse-file.test.js (+24 -0)
📝 packages/node-libofx/ffi.js (+1 -1)

📄 Description

This avoids assuming that imported OFX files are UTF-8 and defers to libofx, which handles reading the CHARSET header in the file and using that encoding to read its content. Fixes #189. (Tested with the provided file and it works fine!)


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/591 **Author:** [@j-f1](https://github.com/j-f1) **Created:** 1/30/2023 **Status:** ✅ Merged **Merged:** 2/3/2023 **Merged by:** [@j-f1](https://github.com/j-f1) **Base:** `master` ← **Head:** `libofx-charset` --- ### 📝 Commits (4) - [`5dadd6b`](https://github.com/actualbudget/actual/commit/5dadd6bd44632d094182f0175dababb7bdaaee4d) Allow libofx to handle decoding imported files - [`b84c58a`](https://github.com/actualbudget/actual/commit/b84c58ad0bf1db194ad954b995b8ff6d65d496e1) Add releve.qfx as a test file - [`5478c76`](https://github.com/actualbudget/actual/commit/5478c76d291a97ef74f7caf8092638cd1f988687) Remove irrelevant redacted transactions from test file - [`e0c23f1`](https://github.com/actualbudget/actual/commit/e0c23f17034d5e20132867e4eb2a72c7e9c241e8) Fix console overload from long console.warn stacks ### 📊 Changes **5 files changed** (+118 additions, -2 deletions) <details> <summary>View changed files</summary> ➕ `packages/loot-core/src/mocks/files/8859-1.qfx` (+63 -0) 📝 `packages/loot-core/src/server/accounts/__snapshots__/parse-file.test.js.snap` (+29 -0) 📝 `packages/loot-core/src/server/accounts/parse-file.js` (+1 -1) 📝 `packages/loot-core/src/server/accounts/parse-file.test.js` (+24 -0) 📝 `packages/node-libofx/ffi.js` (+1 -1) </details> ### 📄 Description This avoids assuming that imported OFX files are UTF-8 and defers to libofx, which handles reading the `CHARSET` header in the file and using that encoding to read its content. Fixes #189. (Tested with the provided file and it works fine!) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-02-28 20:37:56 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#3194