1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00

Merge pull request #298 from erbridge/fix_encoding_error

Fix bad encoding
This commit is contained in:
William Ting 2014-06-28 12:19:24 -07:00
commit 1e15497706

View File

@ -30,6 +30,8 @@ def create_dir(path):
def encode_local(string):
"""Converts string into user's preferred encoding."""
if is_python3():
return string
return string.encode(sys.getfilesystemencoding() or 'utf-8')