Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Differences between XML string encoding in MRI and JRuby #561
I'd like to use JRuby to create some XML files, but it is not escaping characters in the same way MRI Ruby does.
This is a contrived example to show the differences between the two Ruby implementations of String#encode(:xml => [attr|text]).
Yeah. Unfortunately, this is a known problem. We accept the option but it is current unimplemented. I do think we have an issue open for this but I cannot locate it atm (so I will leave this open). The good news is that some recent refactoring will make fixing this a little bit easier, but we are not specifically working on it. For sure if this is not addressed for 1.7.4 it will be for 1.7.5.