You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This has improved with the new CharsetTranscoder, but it still raises an incorrect error:
$ jruby -e '"\xc3".force_encoding("ascii-8bit").encode("utf-8")'
Encoding::InvalidByteSequenceError: ""\xC3"" on US-ASCII
encode at org/jruby/RubyString.java:7619
(root) at -e:1
This error is raised because the only way I could get Java transcoding logic to reject the high bytes of ASCII-8BIT was to require that they be in US-ASCII range...but that causes it to raise an "invalid" error rather than an "undefined" error.