diff options
author | Tao Wang <twang2218@gmail.com> | 2017-01-11 11:44:40 +1100 |
---|---|---|
committer | Tao Wang <twang2218@gmail.com> | 2017-01-11 13:00:52 +1100 |
commit | a6d372d52469304860902a3eba1bafa412d420f0 (patch) | |
tree | 9326c182355a942f3d20fe307017b7562517f4a3 /sqlparse/lexer.py | |
parent | f776dde633acfd846e209b209fcef55051849c1a (diff) | |
download | sqlparse-a6d372d52469304860902a3eba1bafa412d420f0.tar.gz |
Fix #315 support utf-8 by default
Signed-off-by: Tao Wang <twang2218@gmail.com>
Diffstat (limited to 'sqlparse/lexer.py')
-rw-r--r-- | sqlparse/lexer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlparse/lexer.py b/sqlparse/lexer.py index 914b520..82d4380 100644 --- a/sqlparse/lexer.py +++ b/sqlparse/lexer.py @@ -44,7 +44,7 @@ class Lexer(object): pass elif isinstance(text, bytes_type): try: - text = text.decode() + text = text.decode('utf-8') except UnicodeDecodeError: if not encoding: encoding = 'unicode-escape' |