From eb2e816bfdb86b4ff1c352b59463b7fa33203b5b Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Sat, 4 Dec 2021 14:58:28 +0100 Subject: [PATCH] Switch encoding in kobo metadata to ensure utf-8 characters to show up properly (finally) --- cps/kobo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/kobo.py b/cps/kobo.py index 653321cb..e8ea65a4 100644 --- a/cps/kobo.py +++ b/cps/kobo.py @@ -355,7 +355,7 @@ def HandleMetadataRequest(book_uuid): return redirect_or_proxy_request() metadata = get_metadata(book) - response = make_response(json.dumps([metadata])) + response = make_response(json.dumps([metadata], ensure_ascii=False)) response.headers["Content-Type"] = "application/json; charset=utf-8" return response