Switch encoding in kobo metadata to ensure utf-8 characters to show up properly (finally)

This commit is contained in:
Ozzie Isaacs 2021-12-04 14:58:28 +01:00
parent bd01e840ca
commit eb2e816bfd
1 changed files with 1 additions and 1 deletions

View File

@ -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