From 5cb969d21199bd63f9789fcde669aed1b2151213 Mon Sep 17 00:00:00 2001 From: Dmitry Sadovnychyi Date: Sat, 4 Jun 2016 17:44:29 +0800 Subject: [PATCH 1/2] 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 From 1404b7bcea1d9c346037a423234037be13f09593 Mon Sep 17 00:00:00 2001 From: Dmitry Sadovnychyi Date: Sat, 4 Jun 2016 17:49:28 +0800 Subject: [PATCH 2/2] Update AUTHORS.txt --- AUTHORS.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/AUTHORS.txt b/AUTHORS.txt index bc258d6b..afde43ad 100644 --- a/AUTHORS.txt +++ b/AUTHORS.txt @@ -34,5 +34,6 @@ Phillip Berndt (@phillipberndt) Ian Lee (@IanLee1521) Farkhad Khatamov (@hatamov) Kevin Kelley (@kelleyk) +Dmytro Sadovnychyi (@sadovnychyi) Note: (@user) means a github user name.