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
Fix for issue 2182 on jruby-1_7 : Struct#inspect with utf8 encode string member #2321
Converting to a Java charset feels really wrong to me. For 1.9 support I would almost prefer working directly with a RubyString and using cat19 over that. The main problem is not all supported Encodings in Ruby have an equaivalent Java Charset (although this is pretty rare). I won't close this atm and perhaps @headius or @lopex may have a better solution. I feel like this entire method needs to be rewritten and split out from the 1.8 version on it atm.