save .pas files in UTF8 encoding

This commit is contained in:
Бондарев Иван 2017-11-26 17:35:27 +01:00
parent af1ac9b1c5
commit 8737281295
5 changed files with 434 additions and 434 deletions

View file

@ -26,7 +26,7 @@ namespace VisualPascalABC
{
PascalABCCompiler.CompilerType defaultCompilerType = PascalABCCompiler.CompilerType.Remote;
public static Encoding DefaultFileEncoding = Encoding.GetEncoding(1251);
public static Encoding DefaultFileEncoding = Encoding.UTF8;
private IWorkbench workbench;
private PascalABCCompiler.RemoteCompiler remoteCompiler;

View file

@ -369,7 +369,7 @@ namespace VisualPascalABC
CodeFileDocumentControl dt = TbPage;
WatcherService.DisableWatcher(FileName);
//dt.TextEditor.Encoding = VisualEnvironmentCompiler.DefaultFileEncoding;
if (!dt.TextEditor.CanSaveWithCurrentEncoding())
if (!dt.TextEditor.CanSaveWithCurrentEncoding() || true)
{
dt.TextEditor.Encoding = Encoding.UTF8;
dt.TextEditor.SaveFile(FileName);

File diff suppressed because it is too large Load diff

View file

@ -1,4 +1,4 @@
// Copyright (c) Ivan Bondarev, Stanislav Mihalkovich (for details please see \doc\copyright.txt)
// Copyright (c) Ivan Bondarev, Stanislav Mihalkovich (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
unit RobotTaskMaker;

View file

@ -1,4 +1,4 @@
// Copyright (c) Ivan Bondarev, Stanislav Mihalkovich (for details please see \doc\copyright.txt)
// Copyright (c) Ivan Bondarev, Stanislav Mihalkovich (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
unit Sockets;