decodeText static method

UDecodedText decodeText(
  1. Uint8List bytes, {
  2. String? forced,
})

Decodes text bytes, detecting the encoding (handles old Persian Windows-1256 files).

Implementation

static UDecodedText decodeText(Uint8List bytes, {String? forced}) => UTextDecoder.decode(bytes, forced: forced);