diff --git a/editor/ui/composer/content/editor.js b/editor/ui/composer/content/editor.js index 2c8b065ae950..590332ab8d96 100644 --- a/editor/ui/composer/content/editor.js +++ b/editor/ui/composer/content/editor.js @@ -2482,6 +2482,7 @@ function EditorSetDefaultPrefsAndDoctype() element.setAttribute("http-equiv", "content-type"); element.setAttribute("content", "text/html; charset=" + prefCharsetString); headelement.insertBefore( element, headelement.firstChild ); + editor.documentCharacterSet = prefCharsetString; } }