hledger icon indicating copy to clipboard operation
hledger copied to clipboard

CSV import rules, encoding

Open PSLLSP opened this issue 3 years ago • 1 comments

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.

PSLLSP avatar Dec 08 '21 15:12 PSLLSP

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.

simonmichael avatar Dec 08 '21 18:12 simonmichael