Skip to content

Decode ByteList properly for toString#8301

Closed
headius wants to merge 1 commit intojruby:9.5-devfrom
headius:correct_bytelist_tostring
Closed

Decode ByteList properly for toString#8301
headius wants to merge 1 commit intojruby:9.5-devfrom
headius:correct_bytelist_tostring

Conversation

@headius
Copy link
Member

@headius headius commented Jun 24, 2024

This previously decoded the bytelist always as an ISO-8859-1 string, which would obviously break for other encodings and any multibyte characters. This change uses the ByteList's Encoding's actual Charset to decode the string.

Fixes #909.

This previously decoded the bytelist always as an ISO-8859-1
string, which would obviously break for other encodings and any
multibyte characters. This change uses the ByteList's Encoding's
actual Charset to decode the string.

Fixes jruby#909.
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.

1 participant