From 5cb969d21199bd63f9789fcde669aed1b2151213 Mon Sep 17 00:00:00 2001 From: Dmitry Sadovnychyi Date: Sat, 4 Jun 2016 17:44:29 +0800 Subject: [PATCH] Use utf-8 instead of iso-8859-1 as a default encoding --- jedi/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jedi/common.py b/jedi/common.py index 0e9afd11..911227f7 100644 --- a/jedi/common.py +++ b/jedi/common.py @@ -134,7 +134,7 @@ def source_to_unicode(source, encoding=None): return possible_encoding.group(1) else: # the default if nothing else has been set -> PEP 263 - return encoding if encoding is not None else 'iso-8859-1' + return encoding if encoding is not None else 'utf-8' if isinstance(source, unicode): # only cast str/bytes