Types
EncoderErrorMode = enum eemFatal, eemHtml
Procs
proc encodeAll(iq: openArray[char]; charset: Charset): string {....raises: [], tags: [], forbids: [].}
proc encodeAll(iq: openArray[char]; charset: Charset; success: var bool): string {. ...raises: [], tags: [], forbids: [].}
proc initTextEncoder(charset: Charset): TextEncoder {....raises: [], tags: [], forbids: [].}
- Create a new TextEncoder instance from the charset. Note: UTF-8 and UTF-16 encoders are not supported. (For UTF-8, use a TextDecoder instead.)