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

Resolve Emoji Support in User Display Names #53

Open
gkatrakazas opened this issue Feb 14, 2024 · 0 comments
Open

Resolve Emoji Support in User Display Names #53

gkatrakazas opened this issue Feb 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@gkatrakazas
Copy link
Member

Following a comment from @emlun in PR wwWallet/wallet-frontend#170, we've identified a crash related to emoji characters in displayName. The error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD occurs when emojis are used, as shown in the comment wwWallet/wallet-frontend#170 (comment):

"QueryFailedError: Incorrect string value: '\xF0\x9F...' for column wallet.user.displayName... This also fails with a single "😂", but succeeded after I removed all of the "😂"s."

Options:

  • Update Backend Database Schema: Change the displayName field's character set to utf8mb4 to support emojis.
  • Frontend Validation: Prevent emoji input in the displayName field on the frontend.

Action Needed: Decide between updating the backend to support emojis or restricting their use on the frontend.

@gkatrakazas gkatrakazas added the bug Something isn't working label Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant