IsUtf8() public static method

public static IsUtf8 ( byte buffer, int limit = int.MaxValue ) : bool
buffer byte
limit int
return bool
Exemplo n.º 1
0
 public static string ToUtf8String([NotNull] this byte[] bytes)
 {
     return((UTF8Checker.IsUtf8(bytes, 200) ? Encoding.UTF8 : Encoding.Default).GetString(bytes));
 }