diff --git a/src/editor/EditorStatusBar.js b/src/editor/EditorStatusBar.js index 58c311f2a2a..d7ebbcead66 100644 --- a/src/editor/EditorStatusBar.js +++ b/src/editor/EditorStatusBar.js @@ -486,6 +486,8 @@ define(function (require, exports, module) { } else { document.file._encoding = originalEncoding; } + }).fail(function () { + document.file._encoding = originalEncoding; }); } else if (document.file instanceof InMemoryFile) { encodingSelect.$button.text(encoding);