desjarlais / Scintilla.NET

A Windows Forms control, wrapper, and bindings for the Scintilla text editor.
MIT License
107 stars 25 forks source link

How do I set the encoding of Scintilla.NET #70

Closed Z-orz closed 1 year ago

Z-orz commented 1 year ago

How do I set the encoding of Scintilla.NET

VPKSoft commented 1 year ago

Hi, The encoding is always UTF8: https://github.com/VPKSoft/Scintilla.NET/blob/master/Shared/Scintilla.cs#L4425. If you wish to load text other than UTF8, e.g. from a file see: File.ReadAllText.

Z-orz commented 1 year ago

OK, Thank you for your help.