UrlHelper.ToPunycode Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

Overloads

ToPunycode(string) Converts an url from unicode to its [Punycode](https://en.wikipedia.org/wiki/Punycode) representation (the domain name will be Punycode encoded and the path will be URL encoded).
ToPunycode(Uri) Converts an uri from unicode to its [Punycode](https://en.wikipedia.org/wiki/Punycode) representation (the domain name will be Punycode encoded and the path will be URL encoded).

ToPunycode(string)

Converts an url from unicode to its [Punycode](https://en.wikipedia.org/wiki/Punycode) representation (the domain name will be Punycode encoded and the path will be URL encoded).

public static string ToPunycode(string url)

Parameters

url
string

The absolute url to convert to ascii.

Returns

string

ToPunycode(Uri)

Converts an uri from unicode to its [Punycode](https://en.wikipedia.org/wiki/Punycode) representation (the domain name will be Punycode encoded and the path will be URL encoded).

public static string ToPunycode(Uri uri)

Parameters

uri
System.Uri

The uri to convert to ascii.

Returns

string