Module

Data.TextEncoding

#Encoding

data Encoding

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

Constructors

Instances

#encode

encode :: Encoding -> String -> Uint8Array

Encodes a String to a Uint8Array with the given Encoding.

#encodeUtf8

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