mscheltienne / antio

Python package to handle I/O with the CNT format from ANT Neuro.
GNU General Public License v3.0
3 stars 4 forks source link

Encoding of strings #34

Open mscheltienne opened 1 day ago

mscheltienne commented 1 day ago

ANT support shared with me a file which had the string µV set for channel unit, encoded as latin1. This file could thus not be loaded when python tried to decode the string as UTF-8.

The question is, what encoding is the CNT format actually using? Is it using only one encoding or can some fields be encoded with X or Y. I asked ANT's support to look into it, let's see..

larsoner commented 1 day ago

If they don't get back to you or if it varies we can add an encoding="latin-1" (or "utf-8") argument. I think we've had to do this for other readers before

mscheltienne commented 1 day ago

Yes, that's the plan.