You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`load_dotenv` do not override existing System environment variables. To
104
104
override, pass `override=True` to `load_dotenv()`.
105
105
106
+
`load_dotenv` also accepts `encoding` parameter to open the `.env` file. The default encoding is platform dependent (whatever `locale.getpreferredencoding()` returns), but any encoding supported by Python can be used. See the [codecs](https://docs.python.org/3/library/codecs.html#standard-encodings) module for the list of supported encodings.
107
+
106
108
You can use `find_dotenv()` method that will try to find a `.env` file
107
109
by (a) guessing where to start using `__file__` or the working directory
108
110
-- allowing this to work in non-file contexts such as IPython notebooks
@@ -298,6 +300,7 @@ Unreleased
298
300
-----
299
301
300
302
- Add type hints and expose them to users ([@qnighy])([#172])
303
+
-`load_dotenv` and `dotenv_values` now accepts `encoding` paramater, defaults to `None` ([@theskumar])([@earlbread]) (#161)
0 commit comments