MousaviSajad / SleepEEGNet

SleepEEGNet: Automated Sleep Stage Scoring with Sequence to Sequence Deep Learning Approach
200 stars 72 forks source link

UnicodeDecodeError: 'gbk' codec can't decode byte 0xe4 in position 2050: illegal multibyte sequence #4

Open 647LiuSQ opened 4 years ago

647LiuSQ commented 4 years ago

I get the following when I run the code:

Traceback (most recent call last): File "D:/report/SleepEEGNet-master/prepare_physionet.py", line 226, in main() File "D:/report/SleepEEGNet-master/prepare_physionet.py", line 110, in main reader_raw.read_header() File "D:\report\SleepEEGNet-master\dhedfreader.py", line 90, in read_header self.header = h = edf_header(self.file) File "D:\report\SleepEEGNet-master\dhedfreader.py", line 49, in edf_header h['local_subject_id'] = f.read(80).strip() UnicodeDecodeError: 'gbk' codec can't decode byte 0xe4 in position 2050: illegal multibyte sequence

MousaviSajad commented 4 years ago

Hello, The below link may help you resolve the issue: https://stackoverflow.com/questions/28165639/unicodedecodeerror-gbk-codec-cant-decode-byte-0x80-in-position-0-illegal-mult

Regards, Sajad