punycode-2.0: Encode unicode strings to ascii forms according to RFC 3492

Safe HaskellNone

Data.Text.Punycode

Synopsis

Documentation

encode :: Text -> ByteStringSource

Encode a string into its ascii form

decode :: ByteString -> Either PunycodeDecodeException TextSource

Decode a string into its unicode form