From: Oleg Broytman Date: Sun, 11 Aug 2024 18:12:43 +0000 (+0300) Subject: Fix(bkmk_robot_base): Decode base64 bytes to unicode X-Git-Tag: 5.6.1~2 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=87bffb01870b6a806b58ff40d9bb42d5d589f3bb;p=bookmarks_db.git Fix(bkmk_robot_base): Decode base64 bytes to unicode --- diff --git a/Robots/bkmk_robot_base.py b/Robots/bkmk_robot_base.py index bb90d88..7c2e08d 100644 --- a/Robots/bkmk_robot_base.py +++ b/Robots/bkmk_robot_base.py @@ -259,7 +259,8 @@ class robot_base(Robot): if not isinstance(icon_data, bytes): icon_data = icon_data.encode('latin1') bookmark.icon = "data:%s;base64,%s" \ - % (content_type, b64encode(icon_data)) + % (content_type, + b64encode(icon_data).decode('ascii')) icons[icon_url] = (content_type, bookmark.icon )