diff --git a/bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/WebPage_viewAsWeb.py b/bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/WebPage_viewAsWeb.py index 7d9d21cd9ed8f45de1dad2ee4a6b0b6cb6445500..2d1fb91eb6f94c6c93a1eec31abacdd5c243ee0b 100644 --- a/bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/WebPage_viewAsWeb.py +++ b/bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/WebPage_viewAsWeb.py @@ -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