Module
Data.TextEncoding
- Package
- purescript-text-encoding
- Repository
- AlexaDeWit/purescript-text-encoding
#encode Source
encode :: Encoding -> String -> Uint8Array
Encodes a String
to a Uint8Array
with the given Encoding
.
#encodeUtf8 Source
encodeUtf8 :: String -> Uint8Array
Encodes a String
to a Uint8Array
using UTF-8 encoding.
This function is provided as a convenience as UTF-8 is the
encoding you will probably be using most of the time.
- Modules
- Data.
TextDecoding - Data.
TextEncoding