The SIO2 project
  1. The SIO2 project
  2. SIO-2304

UnicodeEncodeError in problemset search autocompletion

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: Current Version
    • Fix Version/s: Near Future
    • Component/s: OIOIOI
    • Labels:

      Description

      To reproduce:

      Open this link: https://szkopul.edu.pl/get_search_hints/public/?q=kr
      Switch to Polish language.

      https://sentry.io/organizations/the-sio2-project/issues/1105451667/?referrer=jira_plugin

      {code}
      UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 28: ordinal not in range(128)
      (3 additional frame(s) were not displayed)
      ...
        File "oioioi/base/utils/__init__.py", line 549, in inner
          data = view(*args, **kwargs)
        File "oioioi/problems/views.py", line 787, in get_search_hints_view
          + get_origininfovalue_hints(query)
        File "oioioi/problems/views.py", line 722, in get_origintag_hints
          res += get_origintag_category_hints(res[0]['value'])
        File "oioioi/problems/views.py", line 673, in get_origintag_category_hints
          } for category in origintag.info_categories.all()

      UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 28: ordinal not in range(128)
      {code}

        Activity

        Franciszek Hnatów made changes -
        Field Original Value New Value
        Assignee Franciszek Hnatów [ fhnatow1 ]
        Franciszek Hnatów made changes -
        TAG Developer Franciszek Hnatów [ fhnatow1 ]
        Franciszek Hnatów made changes -
        Status New [ 10000 ] Resolved [ 5 ]
        Assignee Franciszek Hnatów [ fhnatow1 ] Szymon Acedański [ accek ]
        Resolution Fixed [ 1 ]
        Szymon Acedański made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Szymon Acedański
            Reporter:
            Sentry
            TAG Developer:
            Franciszek Hnatów
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: