punycode-2.0: Encode unicode strings to ascii forms according to RFC 3492
Safe HaskellSafe-Inferred
LanguageHaskell98

Data.Text.Punycode

Synopsis

Documentation

encode :: Text -> ByteString Source #

Encode a string into its ascii form

decode :: ByteString -> Either PunycodeDecodeException Text Source #

Decode a string into its unicode form