summaryrefslogtreecommitdiff
path: root/sqlparse/lexer.py
diff options
context:
space:
mode:
authorTao Wang <twang2218@gmail.com>2017-01-11 11:44:40 +1100
committerTao Wang <twang2218@gmail.com>2017-01-11 13:00:52 +1100
commita6d372d52469304860902a3eba1bafa412d420f0 (patch)
tree9326c182355a942f3d20fe307017b7562517f4a3 /sqlparse/lexer.py
parentf776dde633acfd846e209b209fcef55051849c1a (diff)
downloadsqlparse-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.py2
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'