simonmichael / hledger

Robust, fast, intuitive plain text accounting tool with CLI, TUI and web interfaces.
https://hledger.org
GNU General Public License v3.0
2.86k stars 307 forks source link

CSV import rules, encoding #1777

Open PSLLSP opened 2 years ago

PSLLSP commented 2 years ago

Is it difficult to add new option for CSV import rules, option to define encoding of CSV file? I assume that hledger works with UTF-8 encoding by default. I have some CSV files in encoding CP1250 (Windows-1250), so I have to convert them before import with recode cp1250..u8 FILE.csv.

simonmichael commented 2 years ago

Probably not so difficult at least at first, I would consider a PR especially if it includes an impact and cost assessment or if someone is keen to champion this. Otherwise I recommend that people preprocess data as you have done, just to limit our scope and maintenance/support costs. We could also document that as a first step.