-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 9.10-HF21, 10.3-SNAPSHOT
-
Component/s: Spreadsheet
-
Tags:
-
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
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.
- duplicates
-
NXP-26173 Fix Spreadsheet editor when UI is displayed in Japanese
- Resolved