UrlHelper.ToPunycode Method
- Namespace:
- Weavy.Core.Helpers
- Assembly:
- Weavy.Core.dll
Overloads
To |
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). |
To |
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
- System.String
Returns
System.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
Returns
System.String