Skip to content

Commit

Permalink
Config file encoding to UTF8 always, refs quentinsf#94
Browse files Browse the repository at this point in the history
  • Loading branch information
artkpv committed Nov 7, 2016
1 parent 3ae0843 commit 1354e7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion icsv2ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ def get_field_at_index(fields, index, csv_decimal_comma, ledger_decimal_comma):
def csv_from_ledger(ledger_file):
pattern = re.compile(r"^\s*[;#]\s*CSV:\s*(.*?)\s*$")
csv_comments = set()
with open(ledger_file) as f:
with open(ledger_file, encoding='utf-8') as f:
for line in f:
m = pattern.match(line)
if m:
Expand Down

0 comments on commit 1354e7f

Please sign in to comment.