URI encode a String, unicode aware.
Moduleuri-encode-1.5.0.7Haskell2010
Network.URI.Encode
Unicode aware URI encoding and decoding functions for both String and Text. Although standards are pretty vague about Unicode in URIs most browsers are pretty straightforward when encoding URIs: Encode a text to a UTF-8 string and URI-encode every individual byte (not character).
Synopsis
- value encode
- value encodeWith
- value encodeText
- value encodeTextWith
- value encodeTextToBS
- value encodeTextToBSWith
- value encodeByteString
- value encodeByteStringWith
- value decode
- value decodeText
- value decodeBSToText
- value decodeByteString
- value isAllowed
- Packageuri-encode-1.5.0.7
- Exports13
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceEncode.hs
URI encode a Text, unicode aware.
URI encode a Text into a ByteString, unicode aware.
URI encode a UTF8-encoded ByteString into a ByteString, unicode aware.
URI encode a UTF8-encoded 'ByteString into a ByteString, unicode aware,
using the predicate to decide which characters are escaped (False means
escape).
URI decode a String, unicode aware.
URI decode a Text, unicode aware.
URI decode a ByteString into a Text, unicode aware.
URI decode a ByteString into a UTF8-encoded ByteString, unicode aware.
Is a character allowed in a URI. Only ASCII alphabetic characters, decimal digits, and - _ . ~ are allowed. This is following RFC 3986.