Skip to content

Explicitly specify utf8 encoding when opening files#48

Open
andreasgerstmayr wants to merge 1 commit intobeancount:masterfrom
andreasgerstmayr:utf8
Open

Explicitly specify utf8 encoding when opening files#48
andreasgerstmayr wants to merge 1 commit intobeancount:masterfrom
andreasgerstmayr:utf8

Conversation

@andreasgerstmayr
Copy link
Contributor

By default, open() uses a platform-dependant default encoding (see https://peps.python.org/pep-0597/#using-the-default-encoding-is-a-common-mistake).

As Beancount uses utf8, let's open the files in beangrow also with utf8 encoding.

Ref. downstream issue: andreasgerstmayr/fava-portfolio-returns#106

By default, open() uses a platform-dependant default encoding.
As Beancount uses utf8, let's open the files in beangrow also with utf8 encoding.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant