GitUtils.SafeUnicodeLENoBOM Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a UnicodeEncoding (without BOM) that throws when decoding invalid byte sequences or encoding unsupported char sequences (Unicode can't encode strings w/ invalid surrogate pair sequences). Use this instead of Unicode, which uses a fallback character instead of throwing, which leads to silent corruption.
public static readonly System.Text.Encoding SafeUnicodeLENoBOM;
staticval mutable SafeUnicodeLENoBOM : System.Text.Encoding
Public Shared ReadOnly SafeUnicodeLENoBOM As Encoding