Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SelectField allowedValues with special characters / diacritics #753

Closed
rereradu opened this issue Jun 26, 2020 · 1 comment · Fixed by #759
Closed

SelectField allowedValues with special characters / diacritics #753

rereradu opened this issue Jun 26, 2020 · 1 comment · Fixed by #759
Assignees
Labels
Type: Bug Bug reports and their fixes
Milestone

Comments

@rereradu
Copy link
Contributor

rereradu commented Jun 26, 2020

Hi,
When trying to add options with special characters / diacritics for a SelectField, I get the following error:

Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.

Example:

<SelectField name="someField" allowedValues={['ă', 'ș']}/>

Is there any workaround for this except using a custom field?

@radekmie radekmie added this to Needs triage in Open Source (migrated) Jul 1, 2020
@radekmie radekmie self-assigned this Jul 1, 2020
@radekmie radekmie added the Type: Bug Bug reports and their fixes label Jul 1, 2020
@radekmie radekmie moved this from Needs triage to To do in Open Source (migrated) Jul 1, 2020
@radekmie
Copy link
Contributor

radekmie commented Jul 1, 2020

Hi @rereradu. Indeed, we do use btoa to provide unique value-dependant IDs. I guess we'd need to add some escaping logic to handle whole UTF-8 charset.

@radekmie radekmie moved this from To do to In progress in Open Source (migrated) Jul 8, 2020
@radekmie radekmie closed this as completed Jul 8, 2020
Open Source (migrated) automation moved this from In progress to Closed Jul 8, 2020
@radekmie radekmie added this to the v3.0 milestone Apr 22, 2022
@radekmie radekmie linked a pull request Apr 22, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Bug reports and their fixes
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants