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
- 1 type
- 4 values
- 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
2 declarationsIs a Char a UTF-16 surrogate?
Is the given byte sequence valid under the given encoding?