Encode a string as (generalized) UTF-8. In addition to the encoding, we return a flag indicating whether the encoded string contained any surrogate characters, in which case the output is generalized UTF-8.
Moduleserialise-0.2.6.1Haskell2010
Codec.Serialise.Internal.GeneralisedUTF8
Contents
Synopsis
- value encodeGenUTF8
- data UTF8Encoding
- value decodeGenUTF8
- value isSurrogate
- value isValid
- Packageserialise-0.2.6.1
- Exports5
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceGeneralisedUTF8.hs
Instances2Eq, Show
Eq UTF8EncodingDefined in serialise-0.2.6.1 · Codec.Serialise.Internal.GeneralisedUTF8Show UTF8EncodingDefined in serialise-0.2.6.1 · Codec.Serialise.Internal.GeneralisedUTF8
Utilities
Is a Char a UTF-16 surrogate?
Is the given byte sequence valid under the given encoding?