Module

Data.TextEncoder

Package
purescript-encoding
Repository
menelaos/purescript-encoding

#encode Source

encode :: String -> Uint8Array

Encodes a String to a Uint8Array using UTF-8 encoding.

#encodeUtf8 Source

encodeUtf8 :: String -> Uint8Array

Encodes a String to a Uint8Array using UTF-8 encoding. This is an alias for encode that is provided for symmetry with decodeUtf8.