Click or drag to resize
MimeKit

PunycodeEncode(String) 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
)

Parameters

unicode  String
The Unicode domain name.

Return Value

String
The ASCII-encoded domain name.

Implements

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