Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Character encoding #82

Open
ppouchin opened this issue Dec 1, 2020 · 1 comment
Open

Character encoding #82

ppouchin opened this issue Dec 1, 2020 · 1 comment

Comments

@ppouchin
Copy link

ppouchin commented Dec 1, 2020

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
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants