save .pas files in UTF8 encoding
This commit is contained in:
parent
af1ac9b1c5
commit
8737281295
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue