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` accepts `encoding`as parameter to open the `.env`using that particular encoding. Defaults to 'utf-8'. See [List of Python standard encodings](https://docs.python.org/3/library/codecs.html#standard-encodings)
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
107
108
108
You can use `find_dotenv()` method that will try to find a `.env` file
109
109
by (a) guessing where to start using `__file__` or the working directory
@@ -300,7 +300,7 @@ Unreleased
300
300
-----
301
301
302
302
- Add type hints and expose them to users ([@qnighy])([#172])
303
-
-`load_dotenv` and `dotenv_values` now accepts `encoding` paramater (#161)
303
+
-`load_dotenv` and `dotenv_values` now accepts `encoding` paramater, defaults to `None` ([@theskumar])([@earlbread]) (#161)
0 commit comments