diff --git a/PowerEditor/src/ScintillaComponent/Buffer.cpp b/PowerEditor/src/ScintillaComponent/Buffer.cpp index 165bb7311..930a9f4b2 100644 --- a/PowerEditor/src/ScintillaComponent/Buffer.cpp +++ b/PowerEditor/src/ScintillaComponent/Buffer.cpp @@ -132,6 +132,8 @@ void Buffer::setLangType(LangType lang, const wchar_t* userLangName) _lang = lang; if (_lang == L_USER) _userLangExt = userLangName; + else if (_lang == L_ASCII) + _encoding = NPP_CP_DOS_437; _needLexer = true; //change of lang means lexern needs updating doNotify(BufferChangeLanguage | BufferChangeLexing);