-
Notifications
You must be signed in to change notification settings - Fork 186
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
the given string is not compatible to the expected encoding "US_ASCII" #2749
Comments
Thanks for the report. s = [49, 46, 50].pack('c*').encode("us-ascii")
s = s.encode(xml: :text)
s = s.gsub("\u{000D}", '
') # OK
s = s.gsub("\u{000A}", '
') # OK
s = s.gsub("\u{0085}", '…') # fails
s = s.gsub("\u{2028}", '
') # fails
puts s It fails on line 5 and 6. |
graalvmbot
pushed a commit
that referenced
this issue
Oct 5, 2022
…tern encodings differ * For #2749
graalvmbot
pushed a commit
that referenced
this issue
Oct 5, 2022
…dex} (#2749) PullRequest: truffleruby/3504
eregon
added a commit
to ruby/spec
that referenced
this issue
Nov 7, 2022
…tern encodings differ * For oracle/truffleruby#2749
john-heinnickel
pushed a commit
to thermofisher-jch/truffleruby
that referenced
this issue
Aug 16, 2023
…tern encodings differ * For oracle#2749
john-heinnickel
pushed a commit
to thermofisher-jch/truffleruby
that referenced
this issue
Aug 16, 2023
…ode and LastByteIndexOfStringNode * Fixes oracle#2749
seven1m
pushed a commit
to seven1m/ruby_spec
that referenced
this issue
Sep 2, 2023
…tern encodings differ * For oracle/truffleruby#2749
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
given code:
fails with:
The text was updated successfully, but these errors were encountered: