有关Python中的UTF8的Fastq问题

时间:2019-01-28 11:41:13

标签: python utf-8 fastq

我正在尝试使用Fastq文件,但出现以下错误:

    File "/apps/software/Python/3.5.1-intel-2015c/lib/python3.5/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]  
UnicodeDecodeError: 'ascii' codec can't decode byte 0x8b in position 1: ordinal not in range(128)

我尝试使用其他论坛中使用的io.open,但出现以下错误:

File "/apps/software/Python/3.5.1-intel-2015c/lib/python3.5/codecs.py", line 321, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte

非常感谢!

0 个答案:

没有答案