| Copyright | © 2018-2023 Albert Krewinkel |
|---|---|
| License | MIT |
| Maintainer | Albert Krewinkel <tarleb@hslua.org> |
| Stability | beta |
| Portability | portable |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
HsLua.Core.Utf8
Description
Encoding and decoding of String to and from UTF8.
Synopsis
- toString :: ByteString -> String
- toText :: ByteString -> Text
- fromString :: String -> ByteString
- fromText :: Text -> ByteString
Documentation
toString :: ByteString -> String Source #
Decode to ByteString using UTF-8. Invalid input
bytes are replaced with the Unicode replacement character U+FFFD.String
toText :: ByteString -> Text Source #
Decode to ByteString using UTF-8. Invalid input
bytes are replaced with the Unicode replacement character U+FFFD.Text
fromString :: String -> ByteString Source #
Encode to String using UTF-8.ByteString
fromText :: Text -> ByteString Source #
Encode to Text using UTF-8.ByteString