From c124d53aff297e620b1441ac661872615e8b2f3c Mon Sep 17 00:00:00 2001 From: Tyrone-Zhao Date: Sat, 22 Sep 2018 14:12:11 +0800 Subject: [PATCH] change cursor's encoding to 'utf8' --- dejavu/database_sql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dejavu/database_sql.py b/dejavu/database_sql.py index 031bdcb..cf68c20 100755 --- a/dejavu/database_sql.py +++ b/dejavu/database_sql.py @@ -167,7 +167,7 @@ class SQLDatabase(Database): .. warning: This will result in a loss of data """ - with self.cursor() as cur: + with self.cursor(charset="utf8") as cur: cur.execute(self.DROP_FINGERPRINTS) cur.execute(self.DROP_SONGS)