-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Duplicate
-
Affects Version/s: 9.10-HF20, 10.3-SNAPSHOT
-
Fix Version/s: None
-
Component/s: Spreadsheet, Web UI
-
Tags:
-
Backlog priority:700
The spreadsheet editor is not usable with webui displayed in Japanese
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)
The error comes from this line in nuxeo-spreadsheet-button.html
this.$.iframe.src = this.$.nxconn.url + '/spreadsheet/?cv=' + encodeURIComponent(btoa(JSON.stringify(state)));
Step to reproduce:
- set the browser to display content in Japanese
- open search and search without any filter
- edit display columns (otherwise spreadsheet displays the default columns with English labels, but that's another issue)
- try to open the spreadsheet editor
- is duplicated by
-
NXP-26174 Unable to use spreadsheet editor with UTF-8 and Unicode strings
- Resolved