Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-2698

Specify the UFT-8 encoding when reading/writing text files

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: NoFixVersionApplicable
    • Fix Version/s: 5.2.2
    • Component/s: Framework
    • Release Notes Summary:
      Using UTF-8 Everywhere
    • Release Notes Description:
      Hide

      We made assumptions about the default encoding being always UTF-8. It seems we were not right and to prevent any problems, we are now specifying the UFT-8 encoding when reading/writing text files.

      Show
      We made assumptions about the default encoding being always UTF-8. It seems we were not right and to prevent any problems, we are now specifying the UFT-8 encoding when reading/writing text files.
    • Sprint:
      nxDrive 11.2.23
    • Story Points:
      1

      Description

      It will help preventing such issue on OS not using UTF-8 by default when doing a Direct Transfer session CSV export:

      2021-06-23 15:47:11 74582 123145506799616 ERROR    nxdrive.manager    Asynchronous CSV generation error
      Traceback (most recent call last):
        File "nxdrive/manager.py", line 608, in _generate_csv_async
        File "nxdrive/session_csv.py", line 64, in store_data
      UnicodeEncodeError: 'ascii' codec can't encode character '\xe7' in position 34: ordinal not in range(128)
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h