Flusspferd API and module docs

namespace encodings

Description

Character set encoding

Class methods

  • convertFromString #

    encodings.convertFromString(encoding, blob) ⇒ binary.ByteString
    • encoding (String) – character set encoding to use
    • blob (binary.Binary) – blob to act on

    Encode the characters from the internal string representation – UTF-16 – into encoding. Uses a encodings.Transcoder internally.

  • convertToString #

    encodings.convertToString(encoding, blob) ⇒ String
    • encoding (String) – character set encoding to use
    • blob (binary.Binary) – blob to act on

    Decode the binary data from encoding to the internal encoding needed for strings, which is currently UTF-16. Uses a encodings.Transcoder internally.