Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open dotenv_path with UTF-8 encoding #75

Closed
wants to merge 4 commits into from

Conversation

earlbread
Copy link
Contributor

This resolves #74.
I think it is better to specify the encoding when opening the .env file.

@theskumar
Copy link
Owner

It seems like tests are failing, can you look into it.

@earlbread
Copy link
Contributor Author

Ok, I'll look into it and submit again. Thank you!

@coveralls
Copy link

coveralls commented Nov 11, 2017

Coverage Status

Coverage increased (+0.07%) to 85.354% when pulling bb1a28b on earlbread:open_file_with_utf8 into 05d123b on theskumar:master.

@earlbread
Copy link
Contributor Author

@theskumar I fixed my code. Thank you!

@alanjds
Copy link
Contributor

alanjds commented Jan 15, 2018

Is #60 (comment) related with this PR?

@metalcamp
Copy link

Obviously not appropriate place to discuss this, but why this still hasn't been merged?

@theskumar theskumar force-pushed the master branch 2 times, most recently from d541b6c to fe35be1 Compare March 16, 2018 19:55
@uranusjr
Copy link

We’re hitting this in pypa/pipenv#1963 as well. Either the file should always be decoded with UTF-8, or there should be an additional argument in fine_dotenv etc. to allow users to specify a custom encoding.

@theskumar
Copy link
Owner

This will be superseded by #144

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.

UnicodeDecodeError occurs when a locale is not set.
6 participants