/// <summary> /// Gets the encoding for the specified code page. /// </summary> /// <param name="codePage"> /// The code page. /// </param> /// <returns> /// The <see cref="Encoding"/> for the specified code page. /// </returns> public static Encoding GetEncoding(int codePage) { Charset charset = GetCharset(codePage); return(charset.GetEncoding()); }
public static Encoding GetEncoding(string name) { Charset charset = Charset.GetCharset(name); return(charset.GetEncoding()); }