Issue #5848 has been reported by John Firebaugh.

----------------------------------------
Bug #5848: Array#inspect having an element with non-ASCII compatible #inspect result
https://bugs.ruby-lang.org/issues/5848

Author: John Firebaugh
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin10.8.0]


Is this a bug?

>> class O
>>   def inspect
>>     "foo".encode!(Encoding::UTF_16BE)
>>   end
>> end
=> nil
>> [O.new].inspect
=> "\u5B00\u6600\u6F00\u6F5D"



-- 
http://redmine.ruby-lang.org