W3cubDocs

/Crystal

class URI::Punycode

Overview

Punycode provides an interface for IDNA encoding (RFC 5980), defined in RFC 3492.

Implementation based on Mathias Bynens' punnycode.js project.

Defined in:

uri/punycode.cr

Class Method Summary

Class Method Detail

def self.decode(string)Source

def self.encode(string, io)Source

def self.encode(string)Source

def self.to_ascii(string)Source

© 2012–2020 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/0.35.1/URI/Punycode.html