UnicodeDecodeError in mne.io.read_raw_cnt()

External Email - Use Caution

Hi MNE people!

I have a byte decoding error (UnicodeDecodeError) during the import of a ".cnt" EEG file.
Do you know how to fix it?

Thanks !
Jacques Pesnot Lerousseau.

File for reproduction of the error:
https://drive.google.com/drive/folders/1HS3576_KgPDuUXvVH_mXWivl8914rbgU?usp=sharing

Script:

import mne
fname = '20200824_1524.cnt'
raw = mne.io.read_raw_cnt(fname)

Error:

External Email - Use Caution

Hello!

It seems like the string contains a ? character, which is not part of ASCII. We should probably use Latin-1 (aka ISO-8859-1) instead. I've created an issue to discuss at https://github.com/mne-tools/mne-python/issues/8157.

Thanks for your report!

Clemens