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
Reproduction
ruby -e 'puts "testing\xC2".encode("UTF-8", :invalid => :replace, :undef => :replace, :replace => "foo123")'
MRI behavior (2.2.3)
2.2.3 :001 > "testing\xC2".encode("UTF-8", :invalid => :replace, :undef => :replace, :replace => "foo123") => "testingfoo123"
JRuby behavior (9.0.1.0)
jruby-9.0.1.0 :001 > "testing\xC2".encode("UTF-8", :invalid => :replace, :undef => :replace, :replace => "foo123") => "testing�"
The text was updated successfully, but these errors were encountered:
e59bad4
No branches or pull requests
brianstien commentedOct 20, 2015
Reproduction
MRI behavior (2.2.3)
JRuby behavior (9.0.1.0)
The text was updated successfully, but these errors were encountered: