Click or drag to resize
MimeKit

PunycodeEncode(String, Int32, Int32) Method

Encode a Unicode domain name, converting it to an ASCII-safe representation.

Namespace: MimeKit.Encodings
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
public string Encode(
	string unicode,
	int index,
	int count
)

Parameters

unicode  String
The Unicode domain name.
index  Int32
A zero-based offset into unicode that specifies the start of the substring to convert. The conversion operation continues to the end of the string.
count  Int32
The number of characters to convert in the substring that starts at the position specified by index in the unicode string.

Return Value

String
The ASCII-encoded domain name.

Implements

IPunycodeEncode(String, Int32, Int32)
Remarks
Encodes a Unicode domain name, converting it to an ASCII-safe representation according to the rules defined by the IDNA standard.
See Also