Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-26174

Unable to use spreadsheet editor with UTF-8 and Unicode strings

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 9.10-HF21, 10.3-SNAPSHOT
    • Fix Version/s: 11.1, 2021.0
    • Component/s: Spreadsheet
    • Backlog priority:
      700
    • Sprint:
      nxNS Sprint 10.10.1, nxNS Sprint 10.10.2, nxNS Sprint 10.10.3, nxGang Sprint 11.1.5
    • Story Points:
      2

      Description

      Currently, trying to user the spreadsheet editor if any of the parameters has unicode strings will fail with:

      nuxeo-spreadsheet-button.html:131 Uncaught DOMException: Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.
          at HTMLElement._show (https://dam-solution-tokyo.cloud.nuxeo.com/nuxeo//ui/nuxeo-spreadsheet/nuxeo-spreadsheet-button.html:131:90)
          at HTMLElement.handler (https://dam-solution-tokyo.cloud.nuxeo.com/nuxeo//ui/elements.html:2367:28)
          at Object._fire (https://dam-solution-tokyo.cloud.nuxeo.com/nuxeo//ui/elements.html:7373:14)
          at Object.forward (https://dam-solution-tokyo.cloud.nuxeo.com/nuxeo//ui/elements.html:7768:20)
          at Object.click (https://dam-solution-tokyo.cloud.nuxeo.com/nuxeo//ui/elements.html:7734:14)
          at HTMLElement._handleNative (https://dam-solution-tokyo.cloud.nuxeo.com/nuxeo//ui/elements.html:7157:19)
      

      This happens because we're using btoa and atob to encode and decode strings to base-64. However, this won't work with UTF-8 and Unicode strings.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day
                  1d