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

[Course unit page] 500 error appears if a user copies a unit or xblock with emoji #999

Open
PKulkoRaccoonGang opened this issue May 17, 2024 · 0 comments
Labels
bug Report of or fix for something that isn't working as intended

Comments

@PKulkoRaccoonGang
Copy link
Contributor

PKulkoRaccoonGang commented May 17, 2024

On the Course unit page, if the user copies an xblock that contains an emoji (for example, feedback xblock). The user receives a 500 error.

Feedback xblock:
image

Logs:

django.db.utils.OperationalError: (1366, 'Incorrect string value: \'\\xF0\\x9F\\x98\\x80">...\' for column \'olx\' at row 1')

specifies that there is support only for 3-byte encoding in the MySQL database. Smiles are encoded with 4 bytes and this error happens.

Related issue

@PKulkoRaccoonGang PKulkoRaccoonGang added the bug Report of or fix for something that isn't working as intended label May 17, 2024
@PKulkoRaccoonGang PKulkoRaccoonGang changed the title 500 error appears if a user copies a unit or xblock with emoji [Course unit page] 500 error appears if a user copies a unit or xblock with emoji May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Report of or fix for something that isn't working as intended
Projects
None yet
Development

No branches or pull requests

1 participant