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

Fix JSON Serialization for multipart data containing emoji #23827

Merged
merged 1 commit into from
Feb 21, 2022

Conversation

AkMo3
Copy link
Contributor

@AkMo3 AkMo3 commented Feb 21, 2022

Reason for the change:

  • While using defaultWriter.writeValueAsBytes(o) we convert our emoji to UTF-16 bytes that which cannot be converted to Unicode character again.
  • Using writeValueAsString(o) allows us to not change the convert the string to bytes preserving our Unicode characters.

Fixes #23756

@quarkus-bot

This comment was marked as resolved.

@AkMo3 AkMo3 changed the title Fix Issue #23756: Fix JSON Serialization for multipart data containing emoji Fix JSON Serialization for multipart data containing emoji Feb 21, 2022
Copy link
Contributor

@geoand geoand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks!

@gsmet gsmet merged commit 9b6822c into quarkusio:main Feb 21, 2022
@quarkus-bot quarkus-bot bot added this to the 2.8 - main milestone Feb 21, 2022
@AkMo3 AkMo3 deleted the jackson-emoji branch February 21, 2022 11:04
@gsmet gsmet modified the milestones: 2.8 - main, 2.7.2.Final Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RESTEasy (Reactive) JSON serialization for multipart form data containing emojis is wrong
3 participants