Skip to content

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
bnoordhuis added a commit to bnoordhuis/mini_racer that referenced this pull request Mar 13, 2025
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.
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