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

        Connect your code to JIRA

        Link every code change to JIRA just by adding an issue keys in commit messages. Bridge the gap back to your source and know which changes fixed which JIRA issues.

        Git & Mercurial in the cloud

        Collaborate across unlimited private code repositories.

        Git behind the firewall

        Manage and collaborate on Git repositories behind a firewall.

        Browse and search code

        Browse, search, and track source code repositories.

          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: