Closed natl closed 7 years ago
A PR would be appreciated. :)
Maybe do the following:
try:
raw_text = raw_text.decode('utf-8')
except UnicodeDecodeError as e: #6 (or whatever it's called)
raw_text = raw_text.decode('utf-8', errors='ignore')
warning.warn(warning message + some information from e)
Good point. I'll have a PR for you in a day or two. Thanks.
Thanks! sorry for the delay in merging
I'm working with FCS2 files from a CellQuest Pro 6 cytometer, and I've found that the machine puts the non-UTF8 character \xaa in the header file next to the machine name. I get around this by removing the non-unicode character before reading the file with FCSparser, but would you be open to changing line 166 in api.py from
to
Let me know if you want me to submit a pull request for the change? -Nathanael