public static Encoding GetEncoding(byte[] collation) { if (TdsCollation.SortId(collation) != 0) { return(GetEncodingFromSortOrder(collation)); } else { return(GetEncodingFromLCID(collation)); } }
public static Encoding GetEncodingFromSortOrder(byte[] collation) { int sortId = TdsCollation.SortId(collation); return(GetEncodingFromSortOrder(sortId)); }