Encoding

TextSaveOptions.Encoding property

Character encoding of the text document, which will be applied for its saving

public Encoding Encoding { get; set; }

See Also