Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
647LiuSQ opened this issue Feb 17, 2020 · 1 comment

Comments

@647LiuSQ
Copy link

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
Copy link
Owner

MousaviSajad commented Feb 17, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants