IPunycodeEncode(String, Int 32) Method
Encode a Unicode domain name, converting it to an ASCII-safe representation.
Definition
Namespace: MimeKit.Encodings
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
The ASCII-encoded domain name.
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
string Encode(
string domain,
int index
)Parameters
- domain String
- The Unicode domain name.
- index Int32
- A zero-based offset into domain that specifies the start of the substring to convert. The conversion operation continues to the end of the string.
Return Value
StringThe ASCII-encoded domain name.
Remarks
Encodes a Unicode domain name, converting it to an ASCII-safe representation
according to the rules defined by the IDNA standard.