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

        Hide
        Gerrit Gerrit added a comment -
        Change oioioi~master~Ic1748a8b6de9264e92870c0ec2c8ff1ae9275761, patchset 1
        https://gerrit.sio2project.mimuw.edu.pl/3381

        (SIO-2304) UnicodeEncodeError in problemset search autocompletion

        Change-Id: Ic1748a8b6de9264e92870c0ec2c8ff1ae9275761
        Show
        Gerrit Gerrit added a comment - Change oioioi~master~Ic1748a8b6de9264e92870c0ec2c8ff1ae9275761, patchset 1 https://gerrit.sio2project.mimuw.edu.pl/3381 ( SIO-2304 ) UnicodeEncodeError in problemset search autocompletion Change-Id: Ic1748a8b6de9264e92870c0ec2c8ff1ae9275761
        Hide
        Gerrit Gerrit added a comment -
        Change oioioi~master~I8bd43dd1e43c5e62f0fc1399239b26165d4c179f, patchset 1
        https://gerrit.sio2project.mimuw.edu.pl/3493

        (SIO-2304) UnicodeEncodeError fixed once again

        Change 3381 containing this fix was accidentally reverted by change 3361.

        Now the fix has been restored.

        Change-Id: I8bd43dd1e43c5e62f0fc1399239b26165d4c179f
        Show
        Gerrit Gerrit added a comment - Change oioioi~master~I8bd43dd1e43c5e62f0fc1399239b26165d4c179f, patchset 1 https://gerrit.sio2project.mimuw.edu.pl/3493 ( SIO-2304 ) UnicodeEncodeError fixed once again Change 3381 containing this fix was accidentally reverted by change 3361. Now the fix has been restored. Change-Id: I8bd43dd1e43c5e62f0fc1399239b26165d4c179f
        Hide
        Gerrit Gerrit added a comment -
        Change oioioi~master~I8bd43dd1e43c5e62f0fc1399239b26165d4c179f, patchset 2
        https://gerrit.sio2project.mimuw.edu.pl/3493

        (SIO-2304) UnicodeEncodeError fixed once again

        Change 3381 containing this fix was accidentally reverted by change 3361.

        Now the fix has been restored.

        Change-Id: I8bd43dd1e43c5e62f0fc1399239b26165d4c179f
        Show
        Gerrit Gerrit added a comment - Change oioioi~master~I8bd43dd1e43c5e62f0fc1399239b26165d4c179f, patchset 2 https://gerrit.sio2project.mimuw.edu.pl/3493 ( SIO-2304 ) UnicodeEncodeError fixed once again Change 3381 containing this fix was accidentally reverted by change 3361. Now the fix has been restored. Change-Id: I8bd43dd1e43c5e62f0fc1399239b26165d4c179f

          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: