Uploaded image for project: 'Airavata'
  1. Airavata
  2. AIRAVATA-3618

UnicodeEncodeError when editing a text file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • Django Portal
    • None
    • Easy

    Description

      UnicodeEncodeError occurs when updating a data product with text that includes unicode characters: https://github.com/apache/airavata-django-portal/blob/develop/django_airavata/apps/api/views.py#L826-L829

      Steps to reproduce

      1. Upload a text file into user storage
      2. Click on the file.
      3. In the editor, add the following characters to the file.

      izaciĆ³n aci
      

      4. Save file

      Expected results

      File saves successfully

      Actual results

      Error message 'ascii' codec can't encode character '
      xf3' in position 5: ordinal not in range(128)
      and file fails to save.

      Attachments

        Activity

          People

            marcuschristie Marcus Christie
            marcuschristie Marcus Christie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: