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
{{ message }}
Repository navigation
UnicodeEncodeError: 'ascii' codec can't encode character #121
#!/usr/bin/env python2
import os
from dotenv import load_dotenv, find_dotenv
load_dotenv(find_dotenv())
SHARE_ENDPOINTS = os.getenv("SHARE_ENDPOINTS")
print(SHARE_ENDPOINTS)
Error traceback
Traceback (most recent call last):
File "./bin/settings.py", line 5, in <module>
load_dotenv(find_dotenv())
File "/home/rolla/.local/lib/python2.7/site-packages/dotenv/main.py", line 250, in load_dotenv
return DotEnv(f, verbose=verbose).set_as_environment_variables(override=override)
File "/home/rolla/.local/lib/python2.7/site-packages/dotenv/main.py", line 97, in set_as_environment_variables
os.environ[k] = v
File "/usr/lib/python2.7/os.py", line 473, in __setitem__
putenv(key, item)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0113' in position 8: ordinal not in range(128)
Is there some options to get this working?
Thanks.
Activity
imaben commentedon Sep 13, 2018
+1
bdtian commentedon Dec 19, 2018
+1
bbc2 commentedon May 4, 2019
I could confirm this bug when investigating #176 and it's actually not fixed by #144. I'll look into it.