相关疑难解决方法(0)

使用Dart将Uint8List转换为String

cipher.process返回Uint8List,它是无符号整数列表(0-255).我需要将此Uint8List转换为一个字符串,我可以轻松地将其转换回相同的Uint8List.

    var cipherText = cipher.process( inputAsUint8List );        
    return ASCII.decode(cipherText);
Run Code Online (Sandbox Code Playgroud)

ASCII.decode抛出一个错误,因为一些整数> 127.

arrays string dart

9
推荐指数
4
解决办法
6669
查看次数

标签 统计

arrays ×1

dart ×1

string ×1