Method StringUtil.GetEncoding(+ 1 overload)
Overload
Calls System.Text.Encoding.GetEncoding, and Encoding.RegisterProvider if need.
public static Encoding GetEncoding(string name)
Parameters
name (string) |
Returns
Encoding
|
Overload(top)
Calls System.Text.Encoding.GetEncoding, and Encoding.RegisterProvider if need.
public static Encoding GetEncoding(int codepage)
Parameters
codepage (int)
If -1, uses the current Windows ANSI code page (API GetACP). |
Returns
Encoding
|