1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-24 18:47:23 +00:00

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

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