From 1b70e21d0edbe8acb859a6e92b538b55570d2f7e Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Mon, 2 Sep 2019 11:39:28 -0400 Subject: [PATCH] 2019-09-02 Fred Gleason * Fixed a bug in the 'pypad' module that caused the DB connection to be opened in 'latin1' mode. --- ChangeLog | 3 +++ apis/pypad/api/pypad.py | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3dc49427..5642137c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -19077,3 +19077,6 @@ 2019-09-02 Fred Gleason * Removed text labels from the transport button in the cue editor in rdairplay(1). +2019-09-02 Fred Gleason + * Fixed a bug in the 'pypad' module that caused the DB connection + to be opened in 'latin1' mode. diff --git a/apis/pypad/api/pypad.py b/apis/pypad/api/pypad.py index b1684423..1835f190 100644 --- a/apis/pypad/api/pypad.py +++ b/apis/pypad/api/pypad.py @@ -797,7 +797,9 @@ class Receiver(object): def __openDb(self): creds=self.__getDbCredentials() - return MySQLdb.connect(creds[2],creds[0],creds[1],creds[3]) + return MySQLdb.connect(user=creds[0],password=creds[1], + host=creds[2],database=creds[3], + charset='utf8mb4') def setPadCallback(self,callback): """