seisan read error

Dear obspy community,

I'm trying to read a seisan file but I get this error. Any ideas?
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "<decorator-gen-31>", line 2, in read
   File "/usr/local/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 301, in _map_example_filename
     return func(*args, **kwargs)
   File "/usr/local/lib/python2.7/dist-packages/obspy/core/stream.py", line 235, in read
     st.extend(_read(file, format, headonly, **kwargs).traces)
   File "<decorator-gen-32>", line 2, in _read
   File "/usr/local/lib/python2.7/dist-packages/obspy/core/util/decorator.py", line 211, in uncompress_file
     result = func(filename, *args, **kwargs)
   File "/usr/local/lib/python2.7/dist-packages/obspy/core/stream.py", line 277, in _read
     headonly=headonly, **kwargs)
   File "/usr/local/lib/python2.7/dist-packages/obspy/core/util/base.py", line 433, in _read_from_plugin
     list_obj = read_format(filename, **kwargs)
   File "/usr/local/lib/python2.7/dist-packages/obspy/io/seisan/core.py", line 175, in _read_seisan
     temp = _readline(fh, 1040).decode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xfb in position 0: ordinal not in range(128)

Thanks,
Nikos Triantafyllis

Hi Nikos,

hard to say without the file but my guess is that there's some unicode
(maybe UTF-8) characters in some header fields?

It's probably best if you open an issue on github and attach the file there.

cheers,
T