ome / omero-parade

OMERO.web plugin for displaying Dataset thumbnails or Plates in webclient center panel
GNU Affero General Public License v3.0
1 stars 12 forks source link

Character encoding #82

Open ppouchin opened 3 years ago

ppouchin commented 3 years ago

It seems that when table columns have a "µ" in their name, OMERO.parade is not able to use them for graphs. These tables are come from a Fiji Jython script where the results are saved as tables, like this one in Groovy. Maybe there is something to do there I guess? (Replacing u'\xb5' by "u" before saving the table works for example.)

The following error appears:

Traceback (most recent call last):

  File "/omero/.virtualenvs/web/lib/python3.7/site-packages/django/core/handlers/exception.py", line 41, in inner
    response = get_response(request)

  File "/omero/.virtualenvs/web/lib/python3.7/site-packages/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)

  File "/omero/.virtualenvs/web/lib/python3.7/site-packages/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)

  File "/omero/.virtualenvs/web/lib/python3.7/site-packages/omeroweb/decorators.py", line 538, in wrapped
    retval = f(request, *args, **kwargs)

  File "/omero/.virtualenvs/web/lib/python3.7/site-packages/omero_parade/views.py", line 172, in get_data
    data_name = data_name.decode('utf-8')

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb5 in position 23: invalid start byte
will-moore commented 2 years ago

Reported again at https://www.openmicroscopy.org/qa2/qa/feedback/30899/