Click or drag to resize
MimeKit

CharsetFilter(Int32, Int32) Constructor

Initialize a new instance of the CharsetFilter class.

Namespace: MimeKit.IO.Filters
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
public CharsetFilter(
	int sourceCodePage,
	int targetCodePage
)

Parameters

sourceCodePage  Int32
Source code page.
targetCodePage  Int32
Target code page.
Exceptions
ExceptionCondition
ArgumentOutOfRangeException

sourceCodePage is less than zero or greater than 65535.

-or-

targetCodePage is less than zero or greater than 65535.

NotSupportedException

The sourceCodePage is not supported by the system.

-or-

The targetCodePage is not supported by the system.

Remarks
Creates a new CharsetFilter to convert text from the specified source encoding into the target charset encoding.
See Also