Switch encoding in kobo metadata to ensure utf-8 characters to show up properly (finally)
This commit is contained in:
		
							parent
							
								
									bd01e840ca
								
							
						
					
					
						commit
						eb2e816bfd
					
				| 
						 | 
					@ -355,7 +355,7 @@ def HandleMetadataRequest(book_uuid):
 | 
				
			||||||
        return redirect_or_proxy_request()
 | 
					        return redirect_or_proxy_request()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    metadata = get_metadata(book)
 | 
					    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"
 | 
					    response.headers["Content-Type"] = "application/json; charset=utf-8"
 | 
				
			||||||
    return response
 | 
					    return response
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user