Module

Data.TextEncoding

Package
purescript-text-encoding
Repository
AlexaDeWit/purescript-text-encoding

#Encoding Source

data Encoding

Possible character encodings. For further information see https://encoding.spec.whatwg.org/#names-and-labels

Constructors

Instances

#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.