-
Notifications
You must be signed in to change notification settings - Fork 515
load_dotenv() UnicodeDecodeError #207
Copy link
Copy link
Closed
Description
in .evn file
app_key = '201909128757' account_name = '中国股份有限公司'
in home.py
`
from dotenv import load_dotenv, find_dotenv
import os
load_dotenv(find_dotenv())
print(os.getenv('account_name'))
`
error:
File "C:\Python37\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 447: character maps to
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels