From ceeb2e3c6144c45780a9b557b7a5ea3df41f8658 Mon Sep 17 00:00:00 2001 From: Aldo Bleeker <2095835+ableeker@users.noreply.github.com> Date: Sun, 19 Sep 2021 23:45:22 +0200 Subject: [PATCH] Python 3 fix --- DeDRM_plugin/topazextract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DeDRM_plugin/topazextract.py b/DeDRM_plugin/topazextract.py index 66f09fd..d7e608e 100644 --- a/DeDRM_plugin/topazextract.py +++ b/DeDRM_plugin/topazextract.py @@ -350,7 +350,7 @@ def processBook(self, pidlst): # use 8 digit pids here pid = pid[0:8] if isinstance(pid, str): - pid = pid.encode('latin-1') + pid = pid.encode('utf-8') print("Trying: {0}".format(pid)) bookKeys = [] data = keydata