transcode

abstract fun transcode(source: Value, fromEnc: String, toEnc: String): Value

Re-encodes the given Buffer or Uint8Array instance from one character encoding to another. Returns a new Buffer instance. Supported encodings are 'ascii', 'utf8, 'utf16le', 'ucs2', 'latin1', 'binary'.