EncodingTools.GetEncoding Method
Namespace: Rebex
Assembly: Rebex.Common.dll (version 7.0.9448)
GetEncoding(String)
Returns the encoding associated with the specified code page name.
Declaration
public static Encoding GetEncoding(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| String | name | Code page name. |
Returns
| Type | Description |
|---|---|
| Encoding | Encoding. |
GetEncoding(Int32)
Returns the encoding associated with the specified code page.
Declaration
public static Encoding GetEncoding(int codepage)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | codepage | Code page. |
Returns
| Type | Description |
|---|---|
| Encoding | Encoding. |