Commit a4d35fe4 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] return html charset to fix chinese display

parent 5e6b5ffb
......@@ -51,6 +51,7 @@ else:
# Only fetch code (html, js, css, image) and data from this ERP5, to prevent any data leak as the web site do not control the gadget's code
response.setHeader("Content-Security-Policy", content_security_policy)
response.setHeader('Content-Type', web_page.getContentType('text/html'))
response.setHeader('Content-Type', '%s; charset=utf-8' % web_page.getContentType('text/html'))
return web_content
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment