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 issues with UTF-8 2-byte characters #938

Merged
merged 3 commits into from
Aug 7, 2024

Conversation

dotasek
Copy link
Collaborator

@dotasek dotasek commented Aug 7, 2024

The previous implementation of MySushiHandler used a StringBuilder, which was trying to append the first byte value of a two-byte UTF-8 character, resulting in a silent failure.

Fix uses a ByteArrayOutputStream and also treats invalid characters b replacing them with '?'.

Copy link
Contributor

@grahamegrieve grahamegrieve left a comment

Choose a reason for hiding this comment

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

ok

@grahamegrieve grahamegrieve merged commit 9bfa3b4 into master Aug 7, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants