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

Ensure consistent string encoding #275

Open
tobias-kuendig opened this issue Aug 26, 2024 · 1 comment
Open

Ensure consistent string encoding #275

tobias-kuendig opened this issue Aug 26, 2024 · 1 comment

Comments

@tobias-kuendig
Copy link

Depending on the environment (Browser, App), sendEvent seems to use different string encoding.

For example, this code:

sendEvent('s', 'join', 'ä123')

Is received as \xE4\x31\x32 in the app. It seems to be encoded as ISO-8859-1, even though the document's encoding is UTF-8. Because of the multi-byte character (ä), the last byte (3) seems to go missing.

What is the proper way to ensure a consistent encoding for sendEvent across all environments?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@tobias-kuendig and others