Description Usage Arguments Value See Also Examples
puny_encode and puny_decode implement
the encoding standard for internationalised (non-ASCII) domains and
subdomains. You can use them to encode UTF-8 domain names, or decode
encoded names (which start "xn–"), or both.
1 2 3 | puny_encode(x)
puny_decode(x)
|
x |
a vector of URLs. These should be URL decoded using |
a CharacterVector containing encoded or decoded versions of the entries in x.
Invalid URLs (ones that are NA, or ones that do not successfully map to an actual
decoded or encoded version) will be returned as NA.
url_decode and url_encode for percent-encoding.
1 2 3 4 5 | # Encode a URL
puny_encode("https://www.b<c3><bc>cher.com/foo")
# Decode the result, back to the original
puny_decode("https://www.xn--bcher-kva.com/foo")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.