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 one-byte string Latin-1 to UTF-8 conversion #338

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

bnoordhuis
Copy link
Collaborator

Ruby is not wrong to insist that an ASCII-8BIT string with a character that has its high bit set cannot be converted to UTF-8. Interpret such strings as ISO-8859-1 a.k.a. Latin-1 and only then convert to UTF-8.

Ruby is not wrong to insist that an ASCII-8BIT string with a character
that has its high bit set cannot be converted to UTF-8. Interpret such
strings as ISO-8859-1 a.k.a. Latin-1 and only then convert to UTF-8.
@SamSaffron SamSaffron merged commit 7e140c3 into rubyjs:main Jan 20, 2025
22 of 25 checks passed
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

Successfully merging this pull request may close these issues.

2 participants