这是一个创建于 2532 天前的主题,其中的信息可能已经有所发展或是发生改变。
遇到了一个难题;
今天用 python 读取 Redis 里的中文字符串后使用 zlib 解压,
结果一直报 [ zlib.error: Error -3 while decompressing data: incorrect header check ] 这个错误,
跪求 dalao 救命。
---------------------------------------乱入的分界线--------------------------------------------------------------------
Redis 用 python 读取出来的 type 是 str,
使用 encode 后再使用 decompress 报的错是 [ UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 1: ordinal not in range(128)]
难道是 Redis 中存储错误?